summaryrefslogtreecommitdiff
path: root/ipproto.h
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.h
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.h')
-rw-r--r--ipproto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipproto.h b/ipproto.h
index 845cf008..baec4bdc 100644
--- a/ipproto.h
+++ b/ipproto.h
@@ -140,3 +140,6 @@ extern const char *netdb_protoname (const uint8_t);
#ifndef IPPROTO_MOBILITY
#define IPPROTO_MOBILITY 135
#endif
+#ifndef IPPROTO_ETHERNET
+#define IPPROTO_ETHERNET 143 /* TEMPORARY - registered 2020-01-31, expires 2021-01-31 */
+#endif