summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-08-17 06:29:29 +0000
committerdlg <dlg@openbsd.org>2020-08-17 06:29:29 +0000
commitb8b4c287622c6bb13324bce410df6e5cbd4fe91e (patch)
treecc91f2e288b83d8466a37f571f6db49cef818df3 /usr.sbin/tcpdump/tcpdump.c
parentFix typo in comment (diff)
downloadwireguard-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.c4
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)