]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Add more nd_print_trunc() calls
[tcpdump] / print-ether.c
index 112c6e812ba22e82877da053d1537eacbc0cb55e..373103dcc0e3dc2ecd53500ebee658b828188952 100644 (file)
@@ -159,11 +159,11 @@ ether_print(netdissect_options *ndo,
 
        ndo->ndo_protocol = "ether";
        if (caplen < ETHER_HDRLEN) {
-               ND_PRINT("[|ether]");
+               nd_print_trunc(ndo);
                return (caplen);
        }
        if (length < ETHER_HDRLEN) {
-               ND_PRINT("[|ether]");
+               nd_print_trunc(ndo);
                return (length);
        }
 
@@ -297,7 +297,7 @@ netanalyzer_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
         */
        ndo->ndo_protocol = "netanalyzer_if";
        if (h->len < 4 || h->caplen < 4) {
-               ND_PRINT("[|netanalyzer]");
+               nd_print_trunc(ndo);
                return (h->caplen);
        }
 
@@ -326,7 +326,7 @@ netanalyzer_transparent_if_print(netdissect_options *ndo,
         */
        ndo->ndo_protocol = "netanalyzer_transparent_if";
        if (h->len < 12 || h->caplen < 12) {
-               ND_PRINT("[|netanalyzer-transparent]");
+               nd_print_trunc(ndo);
                return (h->caplen);
        }
 
@@ -476,12 +476,3 @@ ethertype_print(netdissect_options *ndo,
                return (0);
        }
 }
-
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */
-