summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-02-07 06:26:15 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-02-07 06:26:15 +0000
commitaba1421abd1991f49e2f84fc83451d16d34078dc (patch)
tree8d312e463fa8a812004a456184bc6b49cfbeb4c3 /usr.sbin
parent25094133466538fabe1be33900cdc597b23f54f2 (diff)
shorten the output for gre keys.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/print-gre.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-gre.c b/usr.sbin/tcpdump/print-gre.c
index 712968e1cd1..1677449f65c 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.13 2018/02/06 03:07:51 dlg Exp $ */
+/* $OpenBSD: print-gre.c,v 1.14 2018/02/07 06:26:14 dlg Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -160,8 +160,8 @@ gre_print_0(const u_char *p, u_int length)
/* maybe NVGRE, or key entropy? */
vsid = (key & NVGRE_VSID_MASK) >> NVGRE_VSID_SHIFT;
- printf(" vsid=%u+flow=0x%02x/key=%u",
- vsid, (key & NVGRE_FLOWID_MASK) >> NVGRE_FLOWID_SHIFT, key);
+ printf(" key=%u|%u+%0x", key, vsid,
+ (key & NVGRE_FLOWID_MASK) >> NVGRE_FLOWID_SHIFT);
}
if (flags & GRE_SP) {