]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RT6: Update an error message
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 15 May 2023 07:44:27 +0000 (09:44 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 15 May 2023 07:44:27 +0000 (09:44 +0200)
This change will avoid having the keyword "invalid" twice as:
(invalid length nnn) (invalid)

print-rt6.c

index fe0e8575f1cb5868d10f216fe37145962bcb1c6b..c2f86ff48bb4fff277b16ffc4f51a1192cf8dff7 100644 (file)
@@ -153,7 +153,7 @@ rt6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2 _U_)
                }
 
                if (len % 2 == 1) {
-                       ND_PRINT(" (invalid length %u)", len);
+                       ND_PRINT(" [length %u]", len);
                        goto invalid;
                }
                len >>= 1;