Home
last modified time | relevance | path

Searched refs:dcid_len (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/quiche/examples/
Dserver.c125 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument
130 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token()
132 *token_len = sizeof("quiche") - 1 + addr_len + dcid_len; in mint_token()
259 size_t dcid_len = sizeof(dcid); in recv_cb() local
268 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
275 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb()
282 dcid, dcid_len, in recv_cb()
306 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb()
316 dcid, dcid_len, in recv_cb()
346 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len, in recv_cb()
Dhttp3-server.c127 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument
132 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token()
134 *token_len = sizeof("quiche") - 1 + addr_len + dcid_len; in mint_token()
270 size_t dcid_len = sizeof(dcid); in recv_cb() local
279 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
286 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb()
293 dcid, dcid_len, in recv_cb()
317 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb()
327 dcid, dcid_len, in recv_cb()
357 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len, in recv_cb()
/external/rust/crates/quiche/src/
Dffi.rs395 scid: *mut u8, scid_len: *mut size_t, dcid: *mut u8, dcid_len: *mut size_t, in quiche_header_info()
427 if *dcid_len < hdr.dcid.len() { in quiche_header_info()
431 let dcid = slice::from_raw_parts_mut(dcid, *dcid_len); in quiche_header_info()
435 *dcid_len = hdr.dcid.len(); in quiche_header_info()
511 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_negotiate_version()
517 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_negotiate_version()
536 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_retry()
543 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_retry()
Dpacket.rs340 buf: &'b mut [u8], dcid_len: usize, in from_slice()
343 Header::from_bytes(&mut b, dcid_len) in from_slice()
347 b: &'b mut octets::OctetsMut, dcid_len: usize, in from_bytes()
353 let dcid = b.get_bytes(dcid_len)?; in from_bytes()
383 let dcid_len = b.get_u8()?; in from_bytes() localVariable
384 if crate::version_is_supported(version) && dcid_len > MAX_CID_LEN { in from_bytes()
387 let dcid = b.get_bytes(dcid_len as usize)?.to_vec(); in from_bytes()
/external/rust/crates/quiche/include/
Dquiche.h252 uint8_t *dcid, size_t *dcid_len,
274 const uint8_t *dcid, size_t dcid_len,
279 const uint8_t *dcid, size_t dcid_len,