]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-bgp.c
Update .gitignore for other configurations
[tcpdump] / print-bgp.c
index 70a7645df64aa068e0cb86f9afafac3091d14094..6f523585f0f0d3ad26f896e586d6cbee05dd7d57 100644 (file)
@@ -2581,7 +2581,7 @@ bgp_capabilities_print(netdissect_options *ndo,
             cap_offset=2;
             while (tcap_len != 0) {
                 if (tcap_len < 4) {
-                    ND_PRINT("\n\t\t(invalid)");
+                    nd_print_invalid(ndo);
                     break;
                 }
                 ND_PRINT("\n\t\tAFI %s (%u), SAFI %s (%u), Send/Receive: %s",
@@ -3113,8 +3113,8 @@ bgp_print(netdissect_options *ndo,
 
         hlen = EXTRACT_BE_U_2(bgp_header->bgp_len);
         if (hlen < BGP_SIZE) {
-            ND_PRINT("\n[|BGP Bogus header length %u < %u]", hlen,
-                      BGP_SIZE);
+            ND_PRINT("\nmessage length %u < %u", hlen, BGP_SIZE);
+            nd_print_invalid(ndo);
             break;
         }