]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add some debug code to unknown packet upcalls
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Oct 2015 12:58:39 +0000 (05:58 -0700)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:35 +0000 (20:38 -0400)
When receiving data from the kernel from the kernel socket,
some calls that are received are not known what they are.
Provide some more debug code to handle appropriately

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

index 481f81e4ee57fc5434010d80261b753741a98af0..4ee2f9b85179ea3474b5957dd7152c7eb4efc116 100644 (file)
@@ -200,8 +200,11 @@ int pim_mroute_msg(int fd, const char *buf, int buf_size)
   if (ip_hdr->ip_p) {
     /* this is not a kernel upcall */
     if (PIM_DEBUG_PIM_TRACE) {
-      zlog_debug("%s: not a kernel upcall proto=%d msg_size=%d",
-                __PRETTY_FUNCTION__, ip_hdr->ip_p, buf_size);
+      pim_inet4_dump("<src?>", ip_hdr->ip_src, src_str, sizeof(src_str));
+      pim_inet4_dump("<grp?>", ip_hdr->ip_dst, grp_str, sizeof(grp_str));
+      zlog_debug("%s: not a kernel upcall proto=%d src: %s dst: %s msg_size=%d",
+                __PRETTY_FUNCTION__, ip_hdr->ip_p, src_str, grp_str, buf_size);
+      //zlog_hexdump(buf, buf_size);
     }
     return 0;
   }