diff options
author | Ahmed Abdelsalam <ahabdels@gmail.com> | 2020-08-07 15:02:16 +0000 |
---|---|---|
committer | fxlb <devel.fx.lebail@orange.fr> | 2020-08-07 16:11:20 +0000 |
commit | 1103418a18d71c0fe448c0459a42ff1bc20bb0dc (patch) | |
tree | 4f2d85577399073f177d790246e0cc748b74ed5a /ipproto.h | |
parent | 58d8b5d435492e136e3cf1fee13299f8caf27815 (diff) | |
download | tcpdump-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |