summaryrefslogtreecommitdiff
path: root/pimd/pim_igmpv2.h
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2020-12-17 11:40:13 +0000
committerMobashshera Rasool <mrasool@vmware.com>2020-12-24 06:39:12 +0000
commitd1b61cb92dfdb4815d5f729a8f89ceb6eaee7ba6 (patch)
tree7634ca58c11551a909530386aa9ccf141634e6b0 /pimd/pim_igmpv2.h
parent91653aefd487fb35ffca8f2d8db35b8c2b03fd6c (diff)
pimd: IGMP conformance 5.10 test case is failing
Test case 5.10 sends leave message to unicast address, the leave packet is accepted and a query message is sent in response to this. No validation for address is present in the function Add check for addresses as per RFC. Leave messages are allowed only sent to either ALL-ROUTERS (224.0.0.2) or group address. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim_igmpv2.h')
-rw-r--r--pimd/pim_igmpv2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_igmpv2.h b/pimd/pim_igmpv2.h
index f0a6fdc5fb..29591ff16c 100644
--- a/pimd/pim_igmpv2.h
+++ b/pimd/pim_igmpv2.h
@@ -29,7 +29,7 @@ void igmp_v2_send_query(struct igmp_group *group, int fd, const char *ifname,
int igmp_v2_recv_report(struct igmp_sock *igmp, struct in_addr from,
const char *from_str, char *igmp_msg, int igmp_msg_len);
-int igmp_v2_recv_leave(struct igmp_sock *igmp, struct in_addr from,
+int igmp_v2_recv_leave(struct igmp_sock *igmp, struct ip *ip_hdr,
const char *from_str, char *igmp_msg, int igmp_msg_len);
#endif /* PIM_IGMPV2_H */