diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-11 12:27:55 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-11 13:09:05 +0200 |
commit | 77a49fcb6ee80c8a107dd179e445c4eb9aab48e7 (patch) | |
tree | 923eeb78551c4a17bda5409ab0f9ce78e6b1fb73 /print-bgp.c | |
parent | e2293be847464567fb59a532759e61c712893549 (diff) | |
download | tcpdump-77a49fcb6ee80c8a107dd179e445c4eb9aab48e7.tar.gz |
Add the nd_print_invalid() function
It prints " (invalid)", used for malformed or corrupted packets.
Moreover:
Update CONTRIBUTING.
Diffstat (limited to 'print-bgp.c')
-rw-r--r-- | print-bgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |