summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-08-17 06:32:31 +0000
committerdlg <dlg@openbsd.org>2020-08-17 06:32:31 +0000
commitdb002f7aff54b80f636e986cd496f1a6f413ca44 (patch)
tree3e8715a7de472bf34505ac5557dd41a9aa480a4e /usr.sbin/tcpdump
parentadd initial support for handling geneve packets. (diff)
downloadwireguard-openbsd-db002f7aff54b80f636e986cd496f1a6f413ca44.tar.xz
wireguard-openbsd-db002f7aff54b80f636e986cd496f1a6f413ca44.zip
don't need to shift the vxlan vni twice.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-gre.c b/usr.sbin/tcpdump/print-gre.c
index 87aba555379..d3e6c2f0857 100644
--- a/usr.sbin/tcpdump/print-gre.c
+++ b/usr.sbin/tcpdump/print-gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-gre.c,v 1.32 2020/08/17 06:29:29 dlg Exp $ */
+/* $OpenBSD: print-gre.c,v 1.33 2020/08/17 06:32:31 dlg Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -740,7 +740,7 @@ vxlan_print(const u_char *p, u_int length)
if (flags & VXLAN_I) {
uint32_t vni = (htonl(vh->vni) & VXLAN_VNI_MASK) >>
VXLAN_VNI_SHIFT;
- printf(" vni %u", vni >> VXLAN_VNI_SHIFT);
+ printf(" vni %u", vni);
}
if (flags & VXLAN_P)