Home
last modified time | relevance | path

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

/external/rust/crates/quiche/examples/
Dserver.c118 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument
123 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token()
125 *token_len = sizeof("quiche") - 1 + addr_len + dcid_len; in mint_token()
172 static struct conn_io *create_conn(uint8_t *dcid, size_t dcid_len, uint8_t *odcid, in create_conn() argument
234 size_t dcid_len = sizeof(dcid); in recv_cb() local
243 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
250 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb()
257 dcid, dcid_len, in recv_cb()
281 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb()
291 dcid, dcid_len, in recv_cb()
[all …]
Dhttp3-server.c121 static void mint_token(const uint8_t *dcid, size_t dcid_len, in mint_token() argument
126 memcpy(token + sizeof("quiche") - 1 + addr_len, dcid, dcid_len); in mint_token()
128 *token_len = sizeof("quiche") - 1 + addr_len + dcid_len; in mint_token()
250 size_t dcid_len = sizeof(dcid); in recv_cb() local
259 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
266 HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io); in recv_cb()
273 dcid, dcid_len, in recv_cb()
297 mint_token(dcid, dcid_len, &peer_addr, peer_addr_len, in recv_cb()
307 dcid, dcid_len, in recv_cb()
337 conn_io = create_conn(dcid, dcid_len, odcid, odcid_len); in recv_cb()
/external/rust/crates/quiche/src/
Dffi.rs263 scid: *mut u8, scid_len: *mut size_t, dcid: *mut u8, dcid_len: *mut size_t, in quiche_header_info()
295 if *dcid_len < hdr.dcid.len() { in quiche_header_info()
299 let dcid = slice::from_raw_parts_mut(dcid, *dcid_len); in quiche_header_info()
303 *dcid_len = hdr.dcid.len(); in quiche_header_info()
367 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_negotiate_version()
371 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_negotiate_version()
388 scid: *const u8, scid_len: size_t, dcid: *const u8, dcid_len: size_t, in quiche_retry()
393 let dcid = unsafe { slice::from_raw_parts(dcid, dcid_len) }; in quiche_retry()
Dpacket.rs186 pub fn from_slice(buf: &mut [u8], dcid_len: usize) -> Result<Header> { in from_slice()
188 Header::from_bytes(&mut b, dcid_len) in from_slice()
192 b: &mut octets::OctetsMut, dcid_len: usize, in from_bytes()
198 let dcid = b.get_bytes(dcid_len)?; in from_bytes()
228 let dcid_len = b.get_u8()?; in from_bytes() localVariable
229 if crate::version_is_supported(version) && dcid_len > MAX_CID_LEN { in from_bytes()
232 let dcid = b.get_bytes(dcid_len as usize)?.to_vec(); in from_bytes()
/external/rust/crates/quiche/include/
Dquiche.h199 uint8_t *dcid, size_t *dcid_len,
216 const uint8_t *dcid, size_t dcid_len,
221 const uint8_t *dcid, size_t dcid_len,