summaryrefslogtreecommitdiffhomepage
path: root/tools/checkescape/checkescape.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-08-25 14:45:03 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-25 14:47:08 -0700
commit1f0d23c7ade25ebdcae9279e0a8054ef17474f46 (patch)
treee6871825076dd5d67c49d12ee5e8adc650cb16b1 /tools/checkescape/checkescape.go
parente65089029922b8a56bde8a82e4add1556204beaf (diff)
Clarify comment on NetworkProtocolNumber.
The actual values used for this field in Netstack are actually EtherType values of the protocol in an Ethernet frame. Eg. header.IPv4ProtocolNumber is 0x0800 and not the number of the IPv4 Protocol Number itself which is 4. Similarly header.IPv6ProtocolNumber is set to 0x86DD whereas the IPv6 protocol number is 41. See: - https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml (For EtherType) - https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml (For ProtocolNumbers) PiperOrigin-RevId: 328407293
Diffstat (limited to 'tools/checkescape/checkescape.go')
0 files changed, 0 insertions, 0 deletions