diff options
author | 2020-08-17 06:29:29 +0000 | |
---|---|---|
committer | 2020-08-17 06:29:29 +0000 | |
commit | b8b4c287622c6bb13324bce410df6e5cbd4fe91e (patch) | |
tree | cc91f2e288b83d8466a37f571f6db49cef818df3 /usr.sbin/tcpdump/tcpdump.c | |
parent | Fix typo in comment (diff) | |
download | wireguard-openbsd-b8b4c287622c6bb13324bce410df6e5cbd4fe91e.tar.xz wireguard-openbsd-b8b4c287622c6bb13324bce410df6e5cbd4fe91e.zip |
add initial support for handling geneve packets.
it's like vxlan, but different. the most interesting difference to
vxlan is that the protocol adds support for adding optional metadata
to packets (like nsh). this diff currently just skips that stuff
and just handles the payload. for now.
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 02661758e39..bbdba4d4c48 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.93 2020/06/21 05:00:18 dlg Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.94 2020/08/17 06:29:29 dlg Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -365,6 +365,8 @@ main(int argc, char **argv) packettype = PT_GRE; else if (strcasecmp(optarg, "vxlan") == 0) packettype = PT_VXLAN; + else if (strcasecmp(optarg, "geneve") == 0) + packettype = PT_GENEVE; else if (strcasecmp(optarg, "erspan") == 0) packettype = PT_ERSPAN; else if (strcasecmp(optarg, "mpls") == 0) |