Lines Matching refs:scid
783 scid: Vec<u8>, field
945 scid: &[u8], odcid: Option<&[u8]>, config: &mut Config, in accept()
947 let conn = Connection::new(scid, odcid, config, true)?; in accept()
968 server_name: Option<&str>, scid: &[u8], config: &mut Config, in connect()
970 let conn = Connection::new(scid, None, config, false)?; in connect()
1003 scid: &[u8], dcid: &[u8], out: &mut [u8], in negotiate_version()
1005 packet::negotiate_version(scid, dcid, out) in negotiate_version()
1067 scid: &[u8], dcid: &[u8], new_scid: &[u8], token: &[u8], version: u32, in retry()
1070 packet::retry(scid, dcid, new_scid, token, version, out) in retry()
1120 scid: &[u8], odcid: Option<&[u8]>, config: &mut Config, is_server: bool, in new()
1123 Connection::with_tls(scid, odcid, config, tls, is_server) in new()
1127 scid: &[u8], odcid: Option<&[u8]>, config: &mut Config, in with_tls()
1133 scid.iter().map(|b| format!("{:02x}", b)).collect(); in with_tls()
1139 scid: scid.to_vec(), in with_tls()
1246 Some(scid.to_vec()); in with_tls()
1252 Some(scid.to_vec()); in with_tls()
1453 Header::from_bytes(&mut b, self.scid.len()).map_err(|e| { in recv_single()
1479 if hdr.dcid != self.scid { in recv_single()
1483 if hdr.scid != self.dcid { in recv_single()
1564 self.dcid.resize(hdr.scid.len(), 0); in recv_single()
1565 self.dcid.copy_from_slice(&hdr.scid); in recv_single()
1571 &hdr.scid, in recv_single()
1693 Some(&hdr.scid), in recv_single()
1731 self.dcid.resize(hdr.scid.len(), 0); in recv_single()
1732 self.dcid.copy_from_slice(&hdr.scid); in recv_single()
1738 self.dcid.extend_from_slice(&hdr.scid); in recv_single()
2052 scid: if pkt_type != packet::Type::Short { in send()
2053 self.scid.clone() in send()
2500 Some(&hdr.scid), in send()
4396 if let Some(scid) = &tp.initial_source_connection_id { in encode()
4397 TransportParams::encode_param(&mut b, 0x000f, scid.len())?; in encode()
4398 b.put_bytes(&scid)?; in encode()
4402 if let Some(scid) = &tp.retry_source_connection_id { in encode()
4403 TransportParams::encode_param(&mut b, 0x0010, scid.len())?; in encode()
4404 b.put_bytes(&scid)?; in encode()
4676 scid: conn.scid.clone(), in encode_pkt()
4726 let mut hdr = Header::from_bytes(&mut b, conn.scid.len()).unwrap(); in decode_pkt()
4852 len = crate::negotiate_version(&hdr.scid, &hdr.dcid, &mut buf).unwrap(); in version_negotiation()
6118 scid: pipe.client.scid.clone(), in invalid_initial_payload()
6502 let mut scid = [0; MAX_CONN_ID_LEN]; in retry() localVariable
6503 rand::rand_bytes(&mut scid[..]); in retry()
6508 &hdr.scid, in retry()
6510 &scid, in retry()
6526 pipe.server = accept(&scid, Some(&odcid), &mut config).unwrap(); in retry()
6559 let mut scid = [0; MAX_CONN_ID_LEN]; in missing_retry_source_connection_id() localVariable
6560 rand::rand_bytes(&mut scid[..]); in missing_retry_source_connection_id()
6565 &hdr.scid, in missing_retry_source_connection_id()
6567 &scid, in missing_retry_source_connection_id()
6581 pipe.server = accept(&scid, None, &mut config).unwrap(); in missing_retry_source_connection_id()
6614 let mut scid = [0; MAX_CONN_ID_LEN]; in invalid_retry_source_connection_id() localVariable
6615 rand::rand_bytes(&mut scid[..]); in invalid_retry_source_connection_id()
6620 &hdr.scid, in invalid_retry_source_connection_id()
6622 &scid, in invalid_retry_source_connection_id()
6636 pipe.server = accept(&scid, Some(b"bogus value"), &mut config).unwrap(); in invalid_retry_source_connection_id()