summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-07-11 18:28:36 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-07-11 18:28:36 +0200
commite20883e6bf02ffd12b2d430b57739c6065d0be1e (patch)
tree3f8783a2bf51670d76086543503cb35500251580
parentbgpd: BGP should accept "router-id IFNAME" (diff)
downloadfrr-e20883e6bf02ffd12b2d430b57739c6065d0be1e.tar.xz
frr-e20883e6bf02ffd12b2d430b57739c6065d0be1e.zip
Revert "pimd: Prevent igmp packet loopback."
This reverts commit 5bbcd1f0fd82e0e982700dbc12dd959629e91b58. This commit badly breaks local 'ip igmp join XXX YYY' commands. Revert this and fix the issue a slightly different way Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--pimd/pim_igmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index 2d1dea69a..176470e20 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -717,19 +717,6 @@ int pim_igmp_packet(struct igmp_sock *igmp, char *buf, size_t len)
from_str, to_str, igmp->interface->name, len, ip_hlen, ip_hdr->ip_p);
}
- /*
- * When pim starts up we are joining the 224.0.0.13 and 224.0.0.22 multicast
- * groups. This is causing the kernel to create a igmp packet that pim
- * turns around and receives. Therefor if we are the originator
- * of the igmp packet then we can probably just ignore it.
- */
- if (ip_hdr->ip_src.s_addr == igmp->ifaddr.s_addr)
- {
- if (PIM_DEBUG_IGMP_PACKETS)
- zlog_debug ("Received IGMP packet from myself, ignoring");
- return -1;
- }
-
if (ip_hdr->ip_p != PIM_IP_PROTO_IGMP) {
zlog_warn("IP packet protocol=%d is not IGMP=%d",
ip_hdr->ip_p, PIM_IP_PROTO_IGMP);