]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RIP: Update two error messages
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 20 Mar 2019 12:31:47 +0000 (13:31 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 20 Mar 2019 12:49:53 +0000 (13:49 +0100)
Update the output of a test accordingly.

print-rip.c
tests/ripv2-invalid-length.out

index 286497a693d89252074f0b563fd2438ac4b0f775..47f0ac7c6bc3c47a9740286b7655897fda9f88d5 100644 (file)
@@ -361,7 +361,7 @@ rip_print(netdissect_options *ndo,
                                        break;
                                }
                                if (len < entry_size) {
-                                       ND_PRINT(" [len(%u) < entry_size(%u)]",
+                                       ND_PRINT(" [remaining entries length %u < %u]",
                                                 len, entry_size);
                                        nd_print_invalid(ndo);
                                        break;
@@ -383,7 +383,7 @@ rip_print(netdissect_options *ndo,
                                        break;
                                }
                                if (len < entry_size) {
-                                       ND_PRINT(" [len(%u) < entry_size(%u)]",
+                                       ND_PRINT(" [remaining entries length %u < %u]",
                                                 len, entry_size);
                                        nd_print_invalid(ndo);
                                        break;
index f8155ddbbfa6b56ada9028ed6dc99936bf6f2e64..a0c9e3d06a74a39a6d64e8baff66162610455b85 100644 (file)
@@ -9,4 +9,4 @@
          AFI IPv4,       10.7.57.0/24, tag 0x0000, metric: 268435457, next-hop: self
          AFI IPv4,       10.7.61.0/24, tag 0x0000, metric: 1, next-hop: self
          AFI Unknown (37)
-         0x0000:  5100 0000 ff00 0000 0000 0000 0000 0002 [len(16) < entry_size(20)] (invalid)
+         0x0000:  5100 0000 ff00 0000 0000 0000 0000 0002 [remaining entries length 16 < 20] (invalid)