]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Remove unnecessary igmp check
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 10 Feb 2017 20:54:23 +0000 (15:54 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 Feb 2017 15:03:40 +0000 (10:03 -0500)
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 <sharpd@cumulusnetworks.com>
pimd/pim_igmp.c

index 74a05b8589480f30547c65e24223bd0c398f048e..b23fd73518d3ba93585744743ce7b414486f9cd7 100644 (file)
@@ -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;