]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Call the maximum length #define SLARP_MAX_LEN rather than SLARP_LEN, to
authorguy <guy>
Tue, 26 Apr 2005 19:08:45 +0000 (19:08 +0000)
committerguy <guy>
Tue, 26 Apr 2005 19:08:45 +0000 (19:08 +0000)
better reflect what it is.

print-chdlc.c

index 8b32cf91160ac7853badacfb6f40a59ff9df3077..5f650e3305f06da0d9eb8312d98eea65d6b6cba4 100644 (file)
@@ -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;