]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pktap.c
Update .gitignore for other configurations
[tcpdump] / print-pktap.c
index 825851da05b9253d6505b51f633591a1286965e6..0e10aeba56abaacf22ca9900e8ac62fe8173207a 100644 (file)
@@ -107,8 +107,8 @@ 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)) {
-               ND_PRINT("[|pktap]");
+       if (caplen < sizeof(pktap_header_t)) {
+               nd_print_trunc(ndo);
                return (caplen);
        }
        hdr = (const pktap_header_t *)p;
@@ -122,11 +122,11 @@ pktap_if_print(netdissect_options *ndo,
                 * is the length supplied so that the header can
                 * be expanded in the future)?
                 */
-               ND_PRINT("[|pktap]");
+               nd_print_trunc(ndo);
                return (caplen);
        }
-       if (caplen < hdrlen || length < hdrlen) {
-               ND_PRINT("[|pktap]");
+       if (caplen < hdrlen) {
+               nd_print_trunc(ndo);
                return (caplen);
        }