]> The Tcpdump Group git mirrors - tcpdump/commitdiff
do not dependend on eflag setting wether to configure cookie data or not - e.g. the...
authorhannes <hannes>
Tue, 10 May 2005 10:41:40 +0000 (10:41 +0000)
committerhannes <hannes>
Tue, 10 May 2005 10:41:40 +0000 (10:41 +0000)
print-juniper.c

index 6853be731bb6aea9378c20306ba1ce2b3e9eb26e..ab1ccfa93ba016ea3737808ecdefbb895d11d594 100644 (file)
@@ -15,7 +15,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.12 2005-05-03 20:35:42 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.13 2005-05-10 10:41:40 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -449,8 +449,9 @@ juniper_parse_header (const u_char *p, const struct pcap_pkthdr *h, struct junip
                        lp->s,
                        l2info->cookie_len);
 
-            if (eflag && l2info->cookie_len > 0) {
-                printf(", cookie 0x");
+            if (l2info->cookie_len > 0) {
+                if (eflag)
+                    printf(", cookie 0x");
                 for (idx = 0; idx < l2info->cookie_len; idx++) {
                     l2info->cookie[idx] = p[idx]; /* copy cookie data */
                     if (eflag) printf("%02x",p[idx]);