]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-symantec.c
Add changes in 4.2.1.
[tcpdump] / print-symantec.c
index e212b1a436b10f64b21f9322cd47640fddf6bf1c..8b4ee38c4093a3f23c40a49575616529178933b5 100644 (file)
@@ -84,7 +84,6 @@ symantec_if_print(const struct pcap_pkthdr *h, const u_char *p)
        u_int caplen = h->caplen;
        struct symantec_header *sp;
        u_short ether_type;
-       u_short extracted_ether_type;
 
        if (caplen < sizeof (struct symantec_header)) {
                printf("[|symantec]");
@@ -108,8 +107,7 @@ symantec_if_print(const struct pcap_pkthdr *h, const u_char *p)
 
                if (!suppress_default_print)
                        default_print(p, caplen);
-       } else if (ether_encap_print(ether_type, p, length, caplen,
-           &extracted_ether_type) == 0) {
+       } else if (ethertype_print(gndo, ether_type, p, length, caplen) == 0) {
                /* ether_type not known, print raw packet */
                if (!eflag)
                        symantec_hdr_print((u_char *)sp, length + sizeof (struct symantec_header));