]> The Tcpdump Group git mirrors - tcpdump/commitdiff
print protocol type (LCP/IPCP/whatever) even if -e is not specified.
authoritojun <itojun>
Wed, 24 Oct 2001 03:49:19 +0000 (03:49 +0000)
committeritojun <itojun>
Wed, 24 Oct 2001 03:49:19 +0000 (03:49 +0000)
from mshindo

print-ppp.c

index 0739076aa7985f6c5626408a7285eec9fff6a272..614248b076816b149c8ef2e312ad7f6a7cc82273 100644 (file)
@@ -31,7 +31,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.64 2001-09-09 02:04:19 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.65 2001-10-24 03:49:19 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -1019,8 +1019,7 @@ ppp_print(register const u_char *p, u_int length)
                length -= 2;
        }
 
-       if (eflag)
-               printf("%s %d: ", ppp_protoname(proto), full_length);
+       printf("%s %d: ", ppp_protoname(proto), full_length);
 
        handle_ppp(proto, p, length);
        return;
@@ -1154,8 +1153,7 @@ ppp_hdlc_if_print(u_char *user, const struct pcap_pkthdr *h,
                proto = EXTRACT_16BITS(p);
                p += 2;
                length -= 2;
-               if (eflag)
-                       printf("%s: ", ppp_protoname(proto));
+               printf("%s: ", ppp_protoname(proto));
 
                handle_ppp(proto, p, length);
                break;