Lines Matching refs:hd
171 ngtcp2_pkt_hd hd; in handle_packet() local
176 switch (ngtcp2_accept(&hd, data, datalen)) { in handle_packet()
200 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, remote_addr, in handle_packet()
206 if (hd.tokenlen == 0) { in handle_packet()
217 switch (hd.token[0]) { in handle_packet()
228 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd.version, in handle_packet()
229 hd.dcid, &remote_addr.su.sa, remote_addr.len, in handle_packet()
238 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, in handle_packet()
250 token = hd.token; in handle_packet()
251 tokenlen = hd.tokenlen; in handle_packet()
262 if (hd.tokenlen != NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN + 1) { in handle_packet()
279 *qkms.get(), hd.token[NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN]); in handle_packet()
281 if (verify_token(hd.token, hd.tokenlen - 1, &remote_addr.su.sa, in handle_packet()
304 token = hd.token; in handle_packet()
305 tokenlen = hd.tokenlen; in handle_packet()
324 send_connection_close(faddr, hd.version, hd.dcid, hd.scid, remote_addr, in handle_packet()
359 handler = handle_new_connection(faddr, remote_addr, local_addr, hd, podcid, in handle_packet()
381 const Address &local_addr, const ngtcp2_pkt_hd &hd, const ngtcp2_cid *odcid, in handle_new_connection() argument
433 if (upstream->init(faddr, remote_addr, local_addr, hd, odcid, token, in handle_new_connection()