X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/bbc1cfa669a5f51ed26bae3784447076e3fbc80f..ffa1470e5c7ff0e50028d085a481dc797b0b51ed:/print-egp.c diff --git a/print-egp.c b/print-egp.c index 6dd98ffc..46c276c7 100644 --- a/print-egp.c +++ b/print-egp.c @@ -20,7 +20,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-egp.c,v 1.36 2003-11-16 09:36:20 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-egp.c,v 1.37 2005-01-12 11:19:09 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -214,7 +214,7 @@ trunc: } void -egp_print(register const u_int8_t *bp) +egp_print(register const u_int8_t *bp, register u_int length) { register const struct egp_packet *egp; register int status; @@ -222,7 +222,7 @@ egp_print(register const u_int8_t *bp) register int type; egp = (struct egp_packet *)bp; - if (!TTEST(*egp)) { + if (!TTEST2(*egp, length)) { printf("[|egp]"); return; }