diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-11-02 15:14:52 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-11-02 15:14:52 +0100 |
commit | 299fc72fea7a32b18a77457c70028e9679fd5c0d (patch) | |
tree | d004336331ea3cfb2f19cdc2af02fd609a3d2aba /print-tcp.c | |
parent | cb36ac604ea43df523dbf9c2f9f1379bd0d1e319 (diff) | |
download | tcpdump-299fc72fea7a32b18a77457c70028e9679fd5c0d.tar.gz |
Use more nd_print_invalid()
Diffstat (limited to 'print-tcp.c')
-rw-r--r-- | print-tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-tcp.c b/print-tcp.c index 4b605733..1886044b 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -543,7 +543,7 @@ tcp_print(netdissect_options *ndo, break; case SIGNATURE_INVALID: - ND_PRINT("invalid"); + nd_print_invalid(ndo); break; case CANT_CHECK_SIGNATURE: @@ -572,7 +572,7 @@ tcp_print(netdissect_options *ndo, * at this point.) */ if (datalen < 2) { - ND_PRINT(" invalid"); + nd_print_invalid(ndo); } else { LENCHECK(1); ND_PRINT(" keyid %u", EXTRACT_U_1(cp)); @@ -851,7 +851,7 @@ print_tcp_fastopen_option(netdissect_options *ndo, const u_char *cp, } else { /* Fast Open Cookie */ if (datalen % 2 != 0 || datalen < 4 || datalen > 16) { - ND_PRINT(" invalid"); + nd_print_invalid(ndo); } else { ND_PRINT(" cookie "); for (i = 0; i < datalen; ++i) |