From: hannes Date: Tue, 10 May 2005 10:47:47 +0000 (+0000) Subject: do not dependend on eflag setting wether to copy cookie data or not - e.g. the atm... X-Git-Tag: tcpdump-3.9.1~57 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/7ddf914b27c09b75f8939f7f9e8f9b54bbef4cd2 do not dependend on eflag setting wether to copy cookie data or not - e.g. the atm printer needs to access the cookies --- diff --git a/print-juniper.c b/print-juniper.c index 638fd78d..0636db33 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -15,7 +15,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.8.2.4 2005-05-03 20:39:26 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.8.2.5 2005-05-10 10:47:47 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]);