]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Send proper length register packets 186/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 7 Feb 2017 23:34:38 +0000 (18:34 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 8 Feb 2017 14:46:43 +0000 (09:46 -0500)
PIM Register packets are 20 bytes too long.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_mroute.c

index bd9a1c4605f1eaac5bcba36f1c0f40dc6915f1b4..b1cdaf9b95bb1c6effbc25835efe39e1787a1188 100644 (file)
@@ -236,8 +236,9 @@ pim_mroute_msg_wholepkt (int fd, struct interface *ifp, const char *buf)
    * If we've received a register suppress
    */
   if (!up->t_rs_timer)
-    pim_register_send((uint8_t *)buf + sizeof(struct ip), ntohs (ip_hdr->ip_len),
-                     pim_ifp->primary_address, rpg, 0, up);
+    pim_register_send((uint8_t *)buf + sizeof(struct ip),
+                      ntohs (ip_hdr->ip_len) - sizeof (struct ip),
+                      pim_ifp->primary_address, rpg, 0, up);
   return 0;
 }