diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-14 22:19:16 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-14 22:19:16 +0100 |
commit | 05ea5ceecf05f0b16dc076d047c87b97702ce956 (patch) | |
tree | 2541b7026363a184fb4e1898c88dafb8de6161b3 /pimd/pim_pim.c | |
parent | pimd: ifdown sequnce stale report entry (diff) | |
download | frr-05ea5ceecf05f0b16dc076d047c87b97702ce956.tar.xz frr-05ea5ceecf05f0b16dc076d047c87b97702ce956.zip |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r-- | pimd/pim_pim.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index c96cc187c..e4c654557 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) |