]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-symantec.c
When checking for pcap_if_t, add $V_INCLS to CFLAGS, so we look at the
[tcpdump] / print-symantec.c
index 8dc0040a820766a3e2a6c15860c3e22d6238eb77..ec5f02e141fe6c24e042d0971222c896bb84efd8 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-symantec.c,v 1.2 2004-03-17 23:24:38 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-symantec.c,v 1.4 2004-04-05 00:13:59 mcr Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -38,8 +38,6 @@ static const char rcsid[] _U_ =
 
 #include "ether.h"
 
-const u_char *snapend;
-
 struct symantec_header {
        u_int8_t  stuff1[6];
        u_int16_t ether_type;
@@ -57,16 +55,16 @@ symantec_hdr_print(register const u_char *bp, u_int length)
        etype = ntohs(sp->ether_type);
        if (!qflag) {
                if (etype <= ETHERMTU)
-                         (void)printf("invalid ethertype %u", etype);
+                         (void)printf("invalid ethertype %u", etype);
                 else 
-                         (void)printf("ethertype %s (0x%04x)",
+                         (void)printf("ethertype %s (0x%04x)",
                                       tok2str(ethertype_values,"Unknown", etype),
                                        etype);
         } else {
                 if (etype <= ETHERMTU)
-                          (void)printf("invalid ethertype %u", etype);
+                          (void)printf("invalid ethertype %u", etype);
                 else 
-                          (void)printf("%s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", etype));  
+                          (void)printf("%s", tok2str(ethertype_values,"Unknown Ethertype (0x%04x)", etype));  
         }
 
        (void)printf(", length %u: ", length);
@@ -88,7 +86,7 @@ symantec_if_print(const struct pcap_pkthdr *h, const u_char *p)
        u_short extracted_ether_type;
 
        if (caplen < sizeof (struct symantec_header)) {
-               printf("[|syhmantec]");
+               printf("[|symantec]");
                return caplen;
        }