From 05ea5ceecf05f0b16dc076d047c87b97702ce956 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 14 Feb 2017 16:19:16 -0500 Subject: [PATCH] pimd: Allow IPDEFTTL to be used for omnios The omnios OS has no IPDEFTTL defined. Add the ability to handle it for this one case. Signed-off-by: Donald Sharp --- pimd/pim_pim.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index c96cc187c7..e4c654557a 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -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) -- 2.39.5