diff options
author | Sam Balana <sbalana@google.com> | 2021-05-26 14:14:07 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-26 14:16:40 -0700 |
commit | 522ae2dd1f3c0d5aea52a9883cc1319e3b1ebce4 (patch) | |
tree | d0f6681e6e6d2fd500e04360c225c6d2af198d04 /pkg | |
parent | b6f9158424c9f5b8a141e468e22fd12bc4dfc447 (diff) |
Specify subsequent layers as ICMP payloads and add ICMPv6.Pointer
Moves specification of subsequent layers to the Payload field of the ICMP and
ICMPv6 layers.
Removes the need to manually encode type-specific ICMP or ICMPv6 headers, such
as the "pointer" header of parameter problem messages, in the payload. This is
necessary prework to enable matching of more type-specific headers, such as
"ident" of echo requests.
Fixes a bug where the "reserved" header defined by ICMPv6 RFC 4443 was being
incorrectly encoded by ToBytes. This change fixes the implementation by copying
the payload into Payload, instead of the MessageBody.
PiperOrigin-RevId: 376026420
Diffstat (limited to 'pkg')
0 files changed, 0 insertions, 0 deletions