]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Allow IPDEFTTL to be used for omnios
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 14 Feb 2017 21:19:16 +0000 (16:19 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 14 Feb 2017 21:19:16 +0000 (16:19 -0500)
The omnios OS has no IPDEFTTL defined.
Add the ability to handle it for this
one case.

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

index c96cc187c79147e41d3d569fe625b180d6b6407c..e4c654557aaa7dbd288abbbbb5f9611a4645e136 100644 (file)
@@ -567,6 +567,13 @@ pim_msg_send(int fd, struct in_addr src,
   msg_start = buffer + sizeof (struct ip);
   memcpy (msg_start, pim_msg, pim_msg_size);
 
+  /*
+   * Omnios apparently doesn't have a #define for IP default
+   * ttl that is the same as all other platforms.
+   */
+#ifndef IPDEFTTL
+#define IPDEFTTL   64
+#endif
   /* TTL for packets destine to ALL-PIM-ROUTERS is 1 */
   pim_type = PIM_MSG_HDR_GET_TYPE (pim_msg);
   switch (pim_type)