Add ngtcp2_pkt_write_version_negotiation function
This also commit adds ngtcp2_pkt_write_version_negotiation, and deprecates ngtcp2_upe_encode_version_negotiation. This commit fixes the issue that server does not send random value in Unused field of Version Negotiation packet.
Showing
- examples/server.cc 10 additions, 33 deletionsexamples/server.cc
- lib/includes/ngtcp2/ngtcp2.h 20 additions, 0 deletionslib/includes/ngtcp2/ngtcp2.h
- lib/ngtcp2_pkt.c 27 additions, 0 deletionslib/ngtcp2_pkt.c
- tests/main.c 2 additions, 0 deletionstests/main.c
- tests/ngtcp2_pkt_test.c 31 additions, 0 deletionstests/ngtcp2_pkt_test.c
- tests/ngtcp2_pkt_test.h 1 addition, 0 deletionstests/ngtcp2_pkt_test.h
Please register or sign in to comment