]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pktap.c
Remove some useless tests
[tcpdump] / print-pktap.c
index 05ab987b2d8c028d5857ffc50679057bc2b14b77..0e10aeba56abaacf22ca9900e8ac62fe8173207a 100644 (file)
@@ -107,7 +107,7 @@ pktap_if_print(netdissect_options *ndo,
        struct pcap_pkthdr nhdr;
 
        ndo->ndo_protocol = "pktap_if";
-       if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) {
+       if (caplen < sizeof(pktap_header_t)) {
                nd_print_trunc(ndo);
                return (caplen);
        }
@@ -125,7 +125,7 @@ pktap_if_print(netdissect_options *ndo,
                nd_print_trunc(ndo);
                return (caplen);
        }
-       if (caplen < hdrlen || length < hdrlen) {
+       if (caplen < hdrlen) {
                nd_print_trunc(ndo);
                return (caplen);
        }