When binding a quic client's socket, set the addrlen to the exact length of the sockaddr struct being passed in.

Previously, this had been passing sizeof(sockaddr_storage) which is strictly larger than sockaddr_in or sockaddr_in6. The kernel typically doesn't care if you set a value larger than the struct being passed down, but some platforms configure dynamic network acls based on intercepted syscalls and _do_ care about the given addrlen.

PiperOrigin-RevId: 368421849
Change-Id: I48bbee6a102f756d640d9a8e16c50765139dc931
1 file changed
tree: 1b9e6ee6dfdb7c08b8b9c00956a27705f2e1c30b
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.

Code can be viewed in CodeSearch in Quiche and is imported into Chromium.