From 9800ff07b1a3d7b6fb7f532eaba9e926d2e294df Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 7 Feb 2018 06:26:14 +0000 Subject: [PATCH] shorten the output for gre keys. --- usr.sbin/tcpdump/print-gre.c | 6 +++--- 1 file 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) { -- 2.20.1