Lines Matching refs:scid
111 dest->scid = &data[6 + dcidlen + 1]; in ngtcp2_pkt_decode_version_cid()
135 dest->scid = NULL; in ngtcp2_pkt_decode_version_cid()
142 const ngtcp2_cid *dcid, const ngtcp2_cid *scid, in ngtcp2_pkt_hd_init() argument
152 if (scid) { in ngtcp2_pkt_hd_init()
153 hd->scid = *scid; in ngtcp2_pkt_hd_init()
155 ngtcp2_cid_zero(&hd->scid); in ngtcp2_pkt_hd_init()
308 ngtcp2_cid_init(&dest->scid, p, scil); in ngtcp2_pkt_decode_hd_long()
369 ngtcp2_cid_zero(&dest->scid); in ngtcp2_pkt_decode_hd_short()
387 size_t len = NGTCP2_MIN_LONG_HEADERLEN + hd->dcid.datalen + hd->scid.datalen - in ngtcp2_pkt_encode_hd_long()
419 *p++ = (uint8_t)hd->scid.datalen; in ngtcp2_pkt_encode_hd_long()
420 if (hd->scid.datalen) { in ngtcp2_pkt_encode_hd_long()
421 p = ngtcp2_cpymem(p, hd->scid.data, hd->scid.datalen); in ngtcp2_pkt_encode_hd_long()
2097 size_t dcidlen, const uint8_t *scid, size_t scidlen, const uint32_t *sv, in ngtcp2_pkt_write_version_negotiation() argument
2120 p = ngtcp2_cpymem(p, scid, scidlen); in ngtcp2_pkt_write_version_negotiation()
2252 const ngtcp2_cid *scid, const ngtcp2_cid *odcid, const uint8_t *token, in ngtcp2_pkt_write_retry() argument
2266 assert(!ngtcp2_cid_eq(scid, odcid)); in ngtcp2_pkt_write_retry()
2276 scid, /* pkt_num = */ 0, /* pkt_numlen = */ 1, version, in ngtcp2_pkt_write_retry()