From d1b61cb92dfdb4815d5f729a8f89ceb6eaee7ba6 Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Thu, 17 Dec 2020 11:40:13 +0000 Subject: 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 --- pimd/pim_igmpv2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pim_igmpv2.h') diff --git a/pimd/pim_igmpv2.h b/pimd/pim_igmpv2.h index f0a6fdc5f..29591ff16 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 */ -- cgit v1.2.3