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-ipnet.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-ipnet.c')
-rw-r--r-- | print-ipnet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/print-ipnet.c b/print-ipnet.c index 9bb6c184..6a521ecc 100644 --- a/print-ipnet.c +++ b/print-ipnet.c @@ -9,7 +9,6 @@ #include "netdissect.h" #include "extract.h" -static const char tstr[] = "[|ipnet]"; typedef struct ipnet_hdr { nd_uint8_t iph_version; @@ -58,7 +57,7 @@ ipnet_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length) ND_PRINT(", length %u: ", length); return; trunc: - ND_PRINT(" %s", tstr); + nd_print_trunc(ndo); } static void @@ -100,7 +99,7 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen } return; trunc: - ND_PRINT(" %s", tstr); + nd_print_trunc(ndo); } /* |