]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-symantec.c
OpenFlow: Have a function for each message type.
[tcpdump] / print-symantec.c
index 5e203581187dfd7dd3c5106d612226c7617acc64..8fe0c79fe644315dad09b5197f97cdfcb5fec5e3 100644 (file)
@@ -79,12 +79,12 @@ symantec_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_
 
        ndo->ndo_protocol = "symantec";
        if (caplen < sizeof (struct symantec_header)) {
-               ndo->ndo_ll_header_length += caplen;
+               ndo->ndo_ll_hdr_len += caplen;
                nd_print_trunc(ndo);
                return;
        }
 
-       ndo->ndo_ll_header_length += sizeof (struct symantec_header);
+       ndo->ndo_ll_hdr_len += sizeof (struct symantec_header);
        if (ndo->ndo_eflag)
                symantec_hdr_print(ndo, p, length);
 
@@ -110,6 +110,4 @@ symantec_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_
                if (!ndo->ndo_suppress_default_print)
                        ND_DEFAULTPRINT(p, caplen);
        }
-
-       return;
 }