diff options
author | Mobashshera Rasool <mrasool@vmware.com> | 2020-12-17 12:40:13 +0100 |
---|---|---|
committer | Mobashshera Rasool <mrasool@vmware.com> | 2020-12-24 07:39:12 +0100 |
commit | d1b61cb92dfdb4815d5f729a8f89ceb6eaee7ba6 (patch) | |
tree | 7634ca58c11551a909530386aa9ccf141634e6b0 /pimd/pim_igmpv2.h | |
parent | Merge pull request #7744 from donaldsharp/end_configuration (diff) | |
download | frr-d1b61cb92dfdb4815d5f729a8f89ceb6eaee7ba6.tar.xz frr-d1b61cb92dfdb4815d5f729a8f89ceb6eaee7ba6.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |