]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add more nd_print_trunc() calls
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 15 Sep 2018 15:38:43 +0000 (17:38 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 15 Sep 2018 15:48:07 +0000 (17:48 +0200)
print-arcnet.c

index adc846ff46b22ae92fc628ac394915051a014c02..e5e9bbfef7039ebf04cf50051d6dceb899066120 100644 (file)
@@ -214,7 +214,8 @@ arcnet_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ch
        if (phds) {
                if (caplen < ARC_HDRNEWLEN) {
                        arcnet_print(ndo, p, length, 0, 0, 0);
-                       ND_PRINT("[|phds]");
+                       ND_PRINT(" phds");
+                       nd_print_trunc(ndo);
                        return (caplen);
                }
 
@@ -222,7 +223,8 @@ arcnet_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ch
                if (flag == 0xff) {
                        if (caplen < ARC_HDRNEWLEN_EXC) {
                                arcnet_print(ndo, p, length, 0, 0, 0);
-                               ND_PRINT("[|phds extended]");
+                               ND_PRINT(" phds extended");
+                               nd_print_trunc(ndo);
                                return (caplen);
                        }
                        flag = EXTRACT_U_1(ap->arc_flag2);