]> git.ipfire.org Git - thirdparty/curl.git/commit
vquic/ngtcp2.h: define local_addr as sockaddr_storage
authorDaiki Ueno <dueno@redhat.com>
Thu, 26 Nov 2020 08:37:03 +0000 (09:37 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Nov 2020 22:31:42 +0000 (23:31 +0100)
commit0cbd5d5c4f150be7f802ec8898a37445d258cb45
treec4d65f9c267a2e1db1efa1c4a875fd2ea9b44e08
parent0b60d3685e4705e2c0fe4ae9aa7cea4138fbce6d
vquic/ngtcp2.h: define local_addr as sockaddr_storage

This field needs to be wide enough to hold sockaddr_in6 when
connecting via IPv6.  Otherwise, ngtcp2_conn_read_pkt will drop the
packets because of the address mismatch:
  I00000022 [...] con ignore packet from unknown path

We can safely assume that struct sockaddr_storage is available, as it
is used in the public interface of ngtcp2.

Closes #6250
lib/vquic/ngtcp2.c
lib/vquic/ngtcp2.h