diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-02 17:15:04 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-04 13:47:49 +0200 |
commit | ba8936b39b0ce2ff02f3aeb307df4c27657652d8 (patch) | |
tree | 71f8f3b775d7adfb7b2be374c634f749525c10eb /print-krb.c | |
parent | c45392de183543487bfebf52a5d2ccbeb9cef462 (diff) | |
download | tcpdump-ba8936b39b0ce2ff02f3aeb307df4c27657652d8.tar.gz |
Print truncations with nd_print_trunc() instead of tstr[] strings
Remove the tstr[] strings.
Update the output of some tests accordingly.
Moreover:
Add or update some ndo_protocol fields.
Diffstat (limited to 'print-krb.c')
-rw-r--r-- | print-krb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/print-krb.c b/print-krb.c index ab598998..d8c9165a 100644 --- a/print-krb.c +++ b/print-krb.c @@ -49,7 +49,6 @@ * RFC 1510, RFC 2630, etc. */ -static const char tstr[] = " [|kerberos]"; static const u_char *c_print(netdissect_options *, const u_char *, const u_char *); static const u_char *krb4_print_hdr(netdissect_options *, const u_char *); @@ -148,7 +147,7 @@ krb4_print_hdr(netdissect_options *ndo, return (cp); trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return (NULL); #undef PRINT @@ -170,7 +169,7 @@ krb4_print(netdissect_options *ndo, kp = (const struct krb *)cp; if (!ND_TTEST_1(kp->type)) { - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return; } @@ -232,7 +231,7 @@ krb4_print(netdissect_options *ndo, return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } void @@ -245,7 +244,7 @@ krb_print(netdissect_options *ndo, kp = (const struct krb *)dat; if (dat >= ndo->ndo_snapend) { - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return; } |