From 0ae2a75af4215c358b6876054129fac92439338b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 10 Feb 2017 15:54:23 -0500 Subject: [PATCH] pimd: Remove unnecessary igmp check When we receive a igmp packet, there is no need to ensure that it is a igmp packet, as that is what we have asked for. Signed-off-by: Donald Sharp --- pimd/pim_igmp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index 74a05b8589..b23fd73518 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -428,12 +428,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); } - 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); - return -1; - } - igmp_msg = buf + ip_hlen; msg_type = *igmp_msg; igmp_msg_len = len - ip_hlen; -- 2.39.5