From aba1421abd1991f49e2f84fc83451d16d34078dc Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 7 Feb 2018 06:26:15 +0000 Subject: shorten the output for gre keys. --- usr.sbin/tcpdump/print-gre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/tcpdump/print-gre.c') 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) { -- cgit v1.2.3