summaryrefslogtreecommitdiff
path: root/ipproto.c
diff options
context:
space:
mode:
authorAhmed Abdelsalam <ahabdels@gmail.com>2020-08-07 15:02:16 +0000
committerfxlb <devel.fx.lebail@orange.fr>2020-08-07 16:11:20 +0000
commit1103418a18d71c0fe448c0459a42ff1bc20bb0dc (patch)
tree4f2d85577399073f177d790246e0cc748b74ed5a /ipproto.c
parent58d8b5d435492e136e3cf1fee13299f8caf27815 (diff)
downloadtcpdump-1103418a18d71c0fe448c0459a42ff1bc20bb0dc.tar.gz
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 <ahabdels@gmail.com>
Diffstat (limited to 'ipproto.c')
-rw-r--r--ipproto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipproto.c b/ipproto.c
index 58ceeeba..a3b0714a 100644
--- a/ipproto.c
+++ b/ipproto.c
@@ -50,6 +50,7 @@ const struct tok ipproto_values[] = {
{ IPPROTO_PGM, "PGM" },
{ IPPROTO_SCTP, "SCTP" },
{ IPPROTO_MOBILITY, "Mobility" },
+ { IPPROTO_ETHERNET, "Ethernet" },
{ 0, NULL }
};