summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2020-08-17 06:32:32 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2020-08-17 06:32:32 +0000
commit1798b4b8f4c06ba15494da0f1a76090a183fa28e (patch)
treee26b83f3c47162faac8528c388db04de4d612ee1 /usr.sbin/tcpdump
parent2cc3607d9db1bda1ac1a363aac04a9aa954f68ba (diff)
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)