]> The Tcpdump Group git mirrors - tcpdump/commitdiff
BGP: Fix an error string
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 14 Sep 2018 19:37:53 +0000 (21:37 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 14 Sep 2018 19:48:35 +0000 (21:48 +0200)
"[|" is the prefix for a truncated string. This is not the case here.

print-bgp.c

index 974c5e85f9a8e797752cd8494aaa2de9bdd1f685..6f523585f0f0d3ad26f896e586d6cbee05dd7d57 100644 (file)
@@ -3113,8 +3113,8 @@ bgp_print(netdissect_options *ndo,
 
         hlen = EXTRACT_BE_U_2(bgp_header->bgp_len);
         if (hlen < BGP_SIZE) {
 
         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;
         }
 
             break;
         }