Home
last modified time | relevance | path

Searched refs:scid (Results 1 – 25 of 31) sorted by relevance

12

/external/rust/crates/quiche/examples/
Dserver.rs191 quiche::negotiate_version(&hdr.scid, &hdr.dcid, &mut out) in main()
207 let mut scid = [0; quiche::MAX_CONN_ID_LEN]; in main() localVariable
208 scid.copy_from_slice(&conn_id); in main()
210 let scid = quiche::ConnectionId::from_ref(&scid); in main() localVariable
222 &hdr.scid, in main()
224 &scid, in main()
253 if scid.len() != hdr.dcid.len() { in main()
260 let scid = hdr.dcid.clone(); in main() localVariable
262 debug!("New connection: dcid={:?} scid={:?}", hdr.dcid, scid); in main()
265 &scid, in main()
[all …]
Dhttp3-server.rs193 quiche::negotiate_version(&hdr.scid, &hdr.dcid, &mut out) in main()
209 let mut scid = [0; quiche::MAX_CONN_ID_LEN]; in main() localVariable
210 scid.copy_from_slice(&conn_id); in main()
212 let scid = quiche::ConnectionId::from_ref(&scid); in main() localVariable
224 &hdr.scid, in main()
226 &scid, in main()
255 if scid.len() != hdr.dcid.len() { in main()
262 let scid = hdr.dcid.clone(); in main() localVariable
264 debug!("New connection: dcid={:?} scid={:?}", hdr.dcid, scid); in main()
267 &scid, in main()
[all …]
Dclient.rs104 let mut scid = [0; quiche::MAX_CONN_ID_LEN]; in main() localVariable
105 SystemRandom::new().fill(&mut scid[..]).unwrap(); in main()
107 let scid = quiche::ConnectionId::from_ref(&scid); in main() localVariable
114 quiche::connect(url.domain(), &scid, local_addr, peer_addr, &mut config) in main()
121 hex_dump(&scid) in main()
Dhttp3-client.rs101 let mut scid = [0; quiche::MAX_CONN_ID_LEN]; in main() localVariable
102 SystemRandom::new().fill(&mut scid[..]).unwrap(); in main()
104 let scid = quiche::ConnectionId::from_ref(&scid); in main() localVariable
111 quiche::connect(url.domain(), &scid, local_addr, peer_addr, &mut config) in main()
118 hex_dump(&scid) in main()
Dclient.c279 uint8_t scid[LOCAL_CONN_ID_LEN]; in main() local
286 ssize_t rand_len = read(rng, &scid, sizeof(scid)); in main()
306 quiche_conn *conn = quiche_connect(host, (const uint8_t *) scid, sizeof(scid), in main()
Dserver.c179 static struct conn_io *create_conn(uint8_t *scid, size_t scid_len, in create_conn() argument
196 memcpy(conn_io->cid, scid, LOCAL_CONN_ID_LEN); in create_conn()
255 uint8_t scid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local
256 size_t scid_len = sizeof(scid); in recv_cb()
268 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
281 ssize_t written = quiche_negotiate_version(scid, scid_len, in recv_cb()
315 ssize_t written = quiche_retry(scid, scid_len, in recv_cb()
Dhttp3-server.c181 static struct conn_io *create_conn(uint8_t *scid, size_t scid_len, in create_conn() argument
198 memcpy(conn_io->cid, scid, LOCAL_CONN_ID_LEN); in create_conn()
266 uint8_t scid[QUICHE_MAX_CONN_ID_LEN]; in recv_cb() local
267 size_t scid_len = sizeof(scid); in recv_cb()
279 &type, scid, &scid_len, dcid, &dcid_len, in recv_cb()
292 ssize_t written = quiche_negotiate_version(scid, scid_len, in recv_cb()
326 ssize_t written = quiche_retry(scid, scid_len, in recv_cb()
Dhttp3-client.c411 uint8_t scid[LOCAL_CONN_ID_LEN]; in main() local
418 ssize_t rand_len = read(rng, &scid, sizeof(scid)); in main()
438 quiche_conn *conn = quiche_connect(host, (const uint8_t *) scid, sizeof(scid), in main()
/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()
417 if *scid_len < hdr.scid.len() { in quiche_header_info()
421 let scid = slice::from_raw_parts_mut(scid, *scid_len); in quiche_header_info() localVariable
422 let scid = &mut scid[..hdr.scid.len()]; in quiche_header_info() localVariable
423 scid.copy_from_slice(&hdr.scid); in quiche_header_info()
425 *scid_len = hdr.scid.len(); in quiche_header_info()
459 scid: *const u8, scid_len: size_t, odcid: *const u8, odcid_len: size_t, in quiche_accept()
463 let scid = unsafe { slice::from_raw_parts(scid, scid_len) }; in quiche_accept() localVariable
464 let scid = ConnectionId::from_ref(scid); in quiche_accept() localVariable
477 match accept(&scid, odcid.as_ref(), local, peer, config) { in quiche_accept()
[all …]
Dpacket.rs297 pub scid: ConnectionId<'a>, field
359 scid: ConnectionId::default(), in from_bytes()
393 let scid = b.get_bytes(scid_len as usize)?.to_vec(); in from_bytes() localVariable
433 scid: scid.into(), in from_bytes()
487 out.put_u8(self.scid.len() as u8)?; in to_bytes()
488 out.put_bytes(&self.scid)?; in to_bytes()
536 write!(f, " scid={:?}", self.scid)?; in fmt()
735 scid: &[u8], dcid: &[u8], out: &mut [u8], in negotiate_version()
744 b.put_u8(scid.len() as u8)?; in negotiate_version()
745 b.put_bytes(scid)?; in negotiate_version()
[all …]
Dcid.rs645 &self, scid: &ConnectionId, in find_scid_seq()
648 if e.cid == *scid { in find_scid_seq()
806 let (scid, _) = create_cid_and_reset_token(16); in ids_new_scids()
809 let mut ids = ConnectionIdentifiers::new(2, &scid, 0, None); in ids_new_scids()
865 let (scid, _) = create_cid_and_reset_token(16); in new_dcid_event()
868 let mut ids = ConnectionIdentifiers::new(2, &scid, 0, None); in new_dcid_event()
931 let (scid, _) = create_cid_and_reset_token(16); in retire_scids()
934 let mut ids = ConnectionIdentifiers::new(3, &scid, 0, None); in retire_scids()
956 assert_eq!(ids.pop_retired_scid(), Some(scid)); in retire_scids()
Dlib.rs1420 scid: &ConnectionId, odcid: Option<&ConnectionId>, local: SocketAddr, in accept()
1423 let conn = Connection::new(scid, odcid, local, peer, config, true)?; in accept()
1448 server_name: Option<&str>, scid: &ConnectionId, local: SocketAddr, in connect()
1451 let mut conn = Connection::new(scid, None, local, peer, config, false)?; in connect()
1485 scid: &ConnectionId, dcid: &ConnectionId, out: &mut [u8], in negotiate_version()
1487 packet::negotiate_version(scid, dcid, out) in negotiate_version()
1551 scid: &ConnectionId, dcid: &ConnectionId, new_scid: &ConnectionId, in retry()
1554 packet::retry(scid, dcid, new_scid, token, version, out) in retry()
1661 scid: &ConnectionId, odcid: Option<&ConnectionId>, local: SocketAddr, in new()
1665 Connection::with_tls(scid, odcid, local, peer, config, tls, is_server) in new()
[all …]
/external/cronet/net/third_party/quiche/src/quiche/quic/core/crypto/
Dcrypto_server_test.cc163 absl::string_view scid; in SetUp() local
164 ASSERT_TRUE(server_config_->GetStringPiece(kSCID, &scid)); in SetUp()
165 scid_hex_ = "#" + absl::BytesToHexString(scid); in SetUp()
783 absl::string_view scid; in TEST_P() local
784 EXPECT_TRUE(scfg->GetStringPiece(kSCID, &scid)); in TEST_P()
785 EXPECT_NE(scid, kOldConfigId); in TEST_P()
1016 absl::string_view scid; in TEST_F() local
1017 EXPECT_TRUE(scfg->GetStringPiece(kSCID, &scid)); in TEST_F()
1019 const std::string scid_str(scid); in TEST_F()
1030 ASSERT_EQ(scid.size(), 16u); in TEST_F()
[all …]
Dquic_crypto_client_config_test.cc166 absl::string_view scid; in TEST_F() local
167 EXPECT_FALSE(msg.GetStringPiece(kSCID, &scid)); in TEST_F()
193 absl::string_view scid; in TEST_F() local
194 EXPECT_TRUE(msg.GetStringPiece(kSCID, &scid)); in TEST_F()
195 EXPECT_EQ("12345678", scid); in TEST_F()
220 absl::string_view scid; in TEST_F() local
221 EXPECT_TRUE(msg.GetStringPiece(kSCID, &scid)); in TEST_F()
222 EXPECT_EQ("12345678", scid); in TEST_F()
Dquic_crypto_client_config.cc409 absl::string_view scid; in FillInchoateClientHello() local
410 if (scfg->GetStringPiece(kSCID, &scid)) { in FillInchoateClientHello()
411 out->SetStringPiece(kSCID, scid); in FillInchoateClientHello()
476 absl::string_view scid; in FillClientHello() local
477 if (!scfg->GetStringPiece(kSCID, &scid)) { in FillClientHello()
481 out->SetStringPiece(kSCID, scid); in FillClientHello()
/external/rust/crates/quiche/include/
Dquiche.h251 uint8_t *scid, size_t *scid_len,
259 quiche_conn *quiche_accept(const uint8_t *scid, size_t scid_len,
267 const uint8_t *scid, size_t scid_len,
273 ssize_t quiche_negotiate_version(const uint8_t *scid, size_t scid_len,
278 ssize_t quiche_retry(const uint8_t *scid, size_t scid_len,
287 quiche_conn *quiche_conn_new_with_tls(const uint8_t *scid, size_t scid_len,
/external/curl/lib/vquic/
Dvquic.h38 unsigned char *scid,
Dcurl_quiche.c144 uint8_t scid[QUICHE_MAX_CONN_ID_LEN]; member
1135 result = Curl_rand(data, ctx->scid, sizeof(ctx->scid)); in cf_connect_start()
1147 ctx->qconn = quiche_conn_new_with_tls((const uint8_t *)ctx->scid, in cf_connect_start()
1148 sizeof(ctx->scid), NULL, 0, in cf_connect_start()
1162 (void)Curl_qlogdir(data, ctx->scid, sizeof(ctx->scid), &qfd); in cf_connect_start()
Dvquic.c289 unsigned char *scid, in Curl_qlogdir() argument
305 msnprintf(hex, 3, "%02x", scid[i]); in Curl_qlogdir()
Dcurl_ngtcp2.c132 ngtcp2_cid scid; member
2238 ctx->scid.datalen = NGTCP2_MAX_CIDLEN; in cf_connect_start()
2239 result = Curl_rand(data, ctx->scid.data, NGTCP2_MAX_CIDLEN); in cf_connect_start()
2243 (void)Curl_qlogdir(data, ctx->scid.data, NGTCP2_MAX_CIDLEN, &qfd); in cf_connect_start()
2266 rc = ngtcp2_conn_client_new(&ctx->qconn, &ctx->dcid, &ctx->scid, in cf_connect_start()
/external/scapy/scapy/layers/
Dbluetooth.py164 return isinstance(other, L2CAP_ConnReq) and self.dcid == other.scid
185 return isinstance(other, L2CAP_ConfReq) and self.scid == other.dcid
198 return self.scid == other.scid
/external/cronet/net/third_party/quiche/src/quiche/quic/test_tools/
Dcrypto_test_utils.cc199 absl::string_view scid; in ProcessClientHelloDone() local
200 ASSERT_TRUE(server_config->GetStringPiece(kSCID, &scid)); in ProcessClientHelloDone()
203 out_->SetStringPiece(kSCID, scid); in ProcessClientHelloDone()
/external/scapy/test/
Dbluetooth.uts70 a = HCI_Hdr()/HCI_ACL_Hdr()/L2CAP_Hdr()/L2CAP_CmdHdr()/L2CAP_ConnReq(scid=1)
/external/llvm/lib/IR/
DValue.cpp48 Value::Value(Type *ty, unsigned scid) in Value() argument
49 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), in Value()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DValue.cpp53 Value::Value(Type *ty, unsigned scid) in Value() argument
54 : VTy(checkType(ty)), UseList(nullptr), SubclassID(scid), in Value()

12