From: guy Date: Tue, 26 Apr 2005 19:08:45 +0000 (+0000) Subject: Call the maximum length #define SLARP_MAX_LEN rather than SLARP_LEN, to X-Git-Tag: tcpdump-3.9.1~87 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/81adcfda5d9e4a176801982784aedb444e20c214 Call the maximum length #define SLARP_MAX_LEN rather than SLARP_LEN, to better reflect what it is. --- diff --git a/print-chdlc.c b/print-chdlc.c index 8b32cf91..5f650e33 100644 --- a/print-chdlc.c +++ b/print-chdlc.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.5 2005-04-26 09:42:44 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32.2.6 2005-04-26 19:08:45 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -134,7 +134,7 @@ struct cisco_slarp { }; #define SLARP_MIN_LEN 14 -#define SLARP_LEN 18 +#define SLARP_MAX_LEN 18 static void chdlc_slarp_print(const u_char *cp, u_int length) @@ -190,8 +190,8 @@ chdlc_slarp_print(const u_char *cp, u_int length) break; } - if (SLARP_LEN < length && vflag) - printf(", (trailing junk: %d bytes)", length - SLARP_LEN); + if (SLARP_MAX_LEN < length && vflag) + printf(", (trailing junk: %d bytes)", length - SLARP_MAX_LEN); if (vflag > 1) print_unknown_data(cp+4,"\n\t",length-4); return;