X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f509616ae8ac540747382dd4c3434926a0c07793..0f328b4aa16b0b47f05a85c440ce1d07719e3cac:/print-igmp.c diff --git a/print-igmp.c b/print-igmp.c index d5259093..082919e1 100644 --- a/print-igmp.c +++ b/print-igmp.c @@ -124,7 +124,7 @@ print_mtrace(netdissect_options *ndo, ipaddr_string(ndo, tr->tr_src), ipaddr_string(ndo, tr->tr_dst), ipaddr_string(ndo, tr->tr_raddr))); if (IN_CLASSD(EXTRACT_BE_U_4(tr->tr_raddr))) - ND_PRINT((ndo, " with-ttl %u", EXTRACT_U_1(&tr->tr_rttl))); + ND_PRINT((ndo, " with-ttl %u", EXTRACT_U_1(tr->tr_rttl))); return; trunc: ND_PRINT((ndo, "%s", tstr)); @@ -146,7 +146,7 @@ print_mresp(netdissect_options *ndo, ipaddr_string(ndo, tr->tr_src), ipaddr_string(ndo, tr->tr_dst), ipaddr_string(ndo, tr->tr_raddr))); if (IN_CLASSD(EXTRACT_BE_U_4(tr->tr_raddr))) - ND_PRINT((ndo, " with-ttl %u", EXTRACT_U_1(&tr->tr_rttl))); + ND_PRINT((ndo, " with-ttl %u", EXTRACT_U_1(tr->tr_rttl))); return; trunc: ND_PRINT((ndo, "%s", tstr)); @@ -175,8 +175,8 @@ print_igmpv3_report(netdissect_options *ndo, ND_PRINT((ndo, " [invalid number of groups]")); return; } - ND_TCHECK2(bp[group+4], 4); - ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); + ND_TCHECK_4(bp + (group + 4)); + ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, bp + group + 4))); ND_PRINT((ndo, " %s", tok2str(igmpv3report2str, " [v3-report-#%d]", EXTRACT_U_1(bp + group)))); nsrcs = EXTRACT_BE_U_2(bp + group + 2); @@ -191,8 +191,8 @@ print_igmpv3_report(netdissect_options *ndo, /* Print the sources */ ND_PRINT((ndo, " {")); for (j=0; j 0) { @@ -249,8 +249,8 @@ print_igmpv3_query(netdissect_options *ndo, else if (ndo->ndo_vflag > 1) { ND_PRINT((ndo, " {")); for (i=0; i