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

print-dvmrp.c

index 7d7ca07555acf323e53d319be8b1ddf2965e05c5..6d6d7c19b738409e14165ed4aa075f311c92fd8c 100644 (file)
@@ -321,7 +321,7 @@ print_neighbors2(netdissect_options *ndo,
                        len -= 4;
                }
                if (ncount != -1) {
-                       ND_PRINT(" [invalid ncount]");
+                       ND_PRINT(" [ncount %d]", ncount);
                        goto invalid;
                }
        }