]> The Tcpdump Group git mirrors - tcpdump/commitdiff
BGP: Update an error message
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 6 Oct 2022 16:49:27 +0000 (18:49 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 6 Oct 2022 16:55:58 +0000 (18:55 +0200)
From:
    [invalid total segments len 7]
To:
    [total segments length 7 != N x 6] (invalid)

print-bgp.c

index 4fc39957af4be6811be9ce19ce64e89c309bc0ea..eca5d3da9463d8925d4fdc64ae311ec6fbce64b6 100644 (file)
@@ -2578,8 +2578,8 @@ bgp_attr_print(netdissect_options *ndo,
         splen -= 2;
         /* Make sure the secure path length does not signal trailing bytes */
         if (splen % 6) {
-            ND_PRINT(" [invalid total segments len %u]", splen);
-            break;
+            ND_PRINT(" [total segments length %u != N x 6]", splen);
+            goto invalid;
         }
 
         /* Parse secure path segments */