]> The Tcpdump Group git mirrors - tcpdump/commit
Add support for ethernet IP protocol
authorAhmed Abdelsalam <[email protected]>
Fri, 7 Aug 2020 15:02:16 +0000 (15:02 +0000)
committerfxlb <[email protected]>
Fri, 7 Aug 2020 16:11:20 +0000 (16:11 +0000)
commit1103418a18d71c0fe448c0459a42ff1bc20bb0dc
tree4f2d85577399073f177d790246e0cc748b74ed5a
parent58d8b5d435492e136e3cf1fee13299f8caf27815
Add support for ethernet IP protocol

The SRv6 network programming defines a new IP protocol number [1].

The new protocol number is used in the Next Header field of an IPv6 header
or any extension header indicates that the payload is an Ethernet.

IANA has assigned 143 as the protocol number of ethernet [2].

The SRv6 packet has the following format:
IPv6 HDR + SRH + Ethernet HDR + IPv4/IPv6 packet

This patch allows TCPDUMP to dissect such SRv6 packets.

[1] https://tools.ietf.org/html/draft-ietf-spring-srv6-network-programming-16#section-9.1
[2] https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

Signed-off-by: Ahmed Abdelsalam <[email protected]>
ipproto.c
ipproto.h
print-ip-demux.c
tests/TESTLIST
tests/ipv6-srh-ipproto-ether.out [new file with mode: 0644]
tests/ipv6-srh-ipproto-ether.pcap [new file with mode: 0644]