summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-09 16:33:44 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 16:33:44 +0100
commit9d6b743e76107038d747eda9ab2dbdf03dd15e33 (patch)
tree07bf7a4e57d03c08694d8e6e4a3765f930065163
parentb2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 (diff)
dissectors: igmp: Fix calc_csum() calls
Fix calls to calc_csum() missed in the previous commit b2eaec6. Fixes: b2eaec6 ("csum: Remove unused parameter from calc_csum()") Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--proto_igmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto_igmp.c b/proto_igmp.c
index 24ed913..45ca51f 100644
--- a/proto_igmp.c
+++ b/proto_igmp.c
@@ -258,7 +258,7 @@ static void dissect_igmp_v0(struct pkt_buff *pkt)
tprintf(", Code (%u)", msg->code);
}
- csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt), 0);
+ csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt));
tprintf(", CSum (0x%.4x) is %s", ntohs(msg->checksum), csum ?
colorize_start_full(black, red) "bogus (!)" colorize_end() : "ok");
if (csum)
@@ -284,7 +284,7 @@ static void dissect_igmp_v1(struct pkt_buff *pkt)
tprintf(" [ IGMPv1");
PRINT_FRIENDLY_NAMED_MSG_TYPE(msg->version__type);
- csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt), 0);
+ csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt));
tprintf(", CSum (0x%.4x) is %s", ntohs(msg->checksum), csum ?
colorize_start_full(black, red) "bogus (!)" colorize_end() : "ok");
if (csum)
@@ -320,7 +320,7 @@ static void dissect_igmp_v2(struct pkt_buff *pkt)
PRINT_FRIENDLY_NAMED_MSG_TYPE(msg->type);
tprintf(", Max Resp Time (%u)", msg->max_resp_time);
- csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt), 0);
+ csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt));
tprintf(", CSum (0x%.4x) is %s", ntohs(msg->checksum), csum ?
colorize_start_full(black, red) "bogus (!)" colorize_end() : "ok");
if (csum)
@@ -348,7 +348,7 @@ static void dissect_igmp_v3_membership_query(struct pkt_buff *pkt)
PRINT_FRIENDLY_NAMED_MSG_TYPE(msg->type);
tprintf(", Max Resp Code (0x%.2x => %u)", msg->max_resp_code,
DECODE_MAX_RESP_CODE(msg->max_resp_code));
- csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt), 0);
+ csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt));
tprintf(", CSum (0x%.4x) is %s", ntohs(msg->checksum), csum ?
colorize_start_full(black, red) "bogus (!)" colorize_end() : "ok");
if (csum)
@@ -400,7 +400,7 @@ static void dissect_igmp_v3_membership_report(struct pkt_buff *pkt)
tprintf(" [ IGMPv3");
PRINT_FRIENDLY_NAMED_MSG_TYPE(msg->type);
- csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt), 0);
+ csum = calc_csum(msg, sizeof(*msg) + pkt_len(pkt));
tprintf(", CSum (0x%.4x) is %s", ntohs(msg->checksum), csum ?
colorize_start_full(black, red) "bogus (!)" colorize_end() : "ok");
if (csum)