]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-cip.c
More UNALIGNED_MEM{CPY,CMP} on IP addresses.
[tcpdump] / print-cip.c
index 3a7d33a5c258508cfb1e2c45576c5469fe7733fb..82e1de65db2c79267d7847d4b1ead090b1ee606d 100644 (file)
  *
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-cip.c,v 1.25 2005-04-06 21:32:39 mcr Exp $ (LBL)";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -43,7 +38,7 @@ static const char rcsid[] _U_ =
 
 #define RFC1483LLC_LEN 8
 
-static unsigned char rfcllc[] = {
+static const unsigned char rfcllc[] = {
        0xaa,   /* DSAP: non-ISO */
        0xaa,   /* SSAP: non-ISO */
        0x03,   /* Ctrl: Unnumbered Information Command PDU */
@@ -94,7 +89,7 @@ cip_if_print(const struct pcap_pkthdr *h, const u_char *p)
                                printf("(LLC %s) ",
                               etherproto_string(htons(extracted_ethertype)));
                        }
-                       if (!xflag && !qflag)
+                       if (!suppress_default_print)
                                default_print(p, caplen);
                }
        } else {