summaryrefslogtreecommitdiff
path: root/print-igmp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-23 15:05:08 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-23 15:05:08 +0100
commit8d3c7406c4cd7844858bd6bd73413c69337ebd70 (patch)
tree0831070f9dcdd825ace8d4a59ff0f0d4fae4ec02 /print-igmp.c
parentf68c3e3ec0113a70c35d5a76d42096e8bdb40ae7 (diff)
downloadtcpdump-8d3c7406c4cd7844858bd6bd73413c69337ebd70.tar.gz
Use more the EXTRACT_U_1() macro to fetch a one-byte value (23/n)
Reminder: EXTRACT_8BITS is now EXTRACT_U_1. In tok2str() calls (step 4).
Diffstat (limited to 'print-igmp.c')
-rw-r--r--print-igmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-igmp.c b/print-igmp.c
index 0bc56f08..2d9a580f 100644
--- a/print-igmp.c
+++ b/print-igmp.c
@@ -172,7 +172,7 @@ print_igmpv3_report(netdissect_options *ndo,
ND_TCHECK2(bp[group+4], 4);
ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4])));
ND_PRINT((ndo, " %s", tok2str(igmpv3report2str, " [v3-report-#%d]",
- bp[group])));
+ EXTRACT_U_1(bp + group))));
nsrcs = EXTRACT_BE_U_2(bp + group + 2);
/* Check the number of sources and print them */
if (len < group+8+(nsrcs<<2)) {