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-igmp.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-igmp.c')
-rw-r--r-- | print-igmp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/print-igmp.c b/print-igmp.c index fdfae53d..3205a224 100644 --- a/print-igmp.c +++ b/print-igmp.c @@ -43,7 +43,6 @@ #define IN_CLASSD(i) (((int32_t)(i) & 0xf0000000) == 0xe0000000) #endif -static const char tstr[] = "[|igmp]"; /* (following from ipmulti/mrouted/prune.h) */ @@ -127,7 +126,7 @@ print_mtrace(netdissect_options *ndo, ND_PRINT(" with-ttl %u", EXTRACT_U_1(tr->tr_rttl)); return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } static void @@ -149,7 +148,7 @@ print_mresp(netdissect_options *ndo, ND_PRINT(" with-ttl %u", EXTRACT_U_1(tr->tr_rttl)); return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } static void @@ -203,7 +202,7 @@ print_igmpv3_report(netdissect_options *ndo, } return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } static void @@ -259,7 +258,7 @@ print_igmpv3_query(netdissect_options *ndo, ND_PRINT("]"); return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } void @@ -344,5 +343,5 @@ igmp_print(netdissect_options *ndo, } return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } |