From 77a49fcb6ee80c8a107dd179e445c4eb9aab48e7 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 11 Sep 2018 12:27:55 +0200 Subject: Add the nd_print_invalid() function It prints " (invalid)", used for malformed or corrupted packets. Moreover: Update CONTRIBUTING. --- print-bgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-bgp.c') diff --git a/print-bgp.c b/print-bgp.c index 70a7645d..974c5e85 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -2581,7 +2581,7 @@ bgp_capabilities_print(netdissect_options *ndo, cap_offset=2; while (tcap_len != 0) { if (tcap_len < 4) { - ND_PRINT("\n\t\t(invalid)"); + nd_print_invalid(ndo); break; } ND_PRINT("\n\t\tAFI %s (%u), SAFI %s (%u), Send/Receive: %s", -- cgit v1.2.1