X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..ffa1470e5c7ff0e50028d085a481dc797b0b51ed:/print-egp.c?ds=sidebyside diff --git a/print-egp.c b/print-egp.c index f75f3d55..46c276c7 100644 --- a/print-egp.c +++ b/print-egp.c @@ -18,6 +18,10 @@ * Initial contribution from Jeff Honig (jch@MITCHELL.CIT.CORNELL.EDU). */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-egp.c,v 1.37 2005-01-12 11:19:09 hannes Exp $ (LBL)"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -31,10 +35,6 @@ #include "addrtoname.h" #include "extract.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-egp.c,v 1.35 2003-11-15 00:39:20 guy Exp $ (LBL)"; -#endif #include "ip.h" struct egp_packet { @@ -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; }