Retrieve the correct IPv6 address when sending an ICMP6 Echo Reply.

When sending an ICMP6 Echo Reply (cl/492531951), the packet was treated as if the IP6 headers were still present at the start of the packet. Instead it was accessing bytes 8-24 of the packet, which has been stripped of IP6 and ICMP6 headers leading to undefined behaviour.

This refactors out the destination IP retrieval and changed the unit test to be more rigid by comparing packet contents.
Logs from successful run: sponge2/103bb5f8-ebde-4d4f-a7fb-92abe1e721f5

PiperOrigin-RevId: 493947520
3 files changed
tree: 0a02cacf276e8dc2a26cb71e682a3fe7fabfe097
  1. build/
  2. depstool/
  3. quiche/
  4. .bazelrc
  5. BUILD.bazel
  10. WORKSPACE.bazel


QUICHE stands for QUIC, Http, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.

There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:

To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:

To contribute to QUICHE, follow instructions at

QUICHE is only supported on little-endian platforms.