From: dlg Date: Fri, 9 Feb 2018 04:08:26 +0000 (+0000) Subject: use ether_tryprint, which looks inside the ether packet. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1d275b88dfcee97f38c9cbfe1f9d48259be5680d;p=openbsd use ether_tryprint, which looks inside the ether packet. ether_print just prints the ether header. --- diff --git a/usr.sbin/tcpdump/print-gre.c b/usr.sbin/tcpdump/print-gre.c index d60877cdc24..b1ecc2ff8b3 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.17 2018/02/09 00:06:51 dlg Exp $ */ +/* $OpenBSD: print-gre.c,v 1.18 2018/02/09 04:08:26 dlg Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -257,7 +257,7 @@ gre_print_0(const u_char *p, u_int length) mpls_print(p, length); break; case ETHERTYPE_TRANSETHER: - ether_print(p, length); + ether_tryprint(p, length, 0); break; default: printf("unknown-proto-%04x", proto);