summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-04-24 09:41:25 +0000
committerRoy Marples <roy@marples.name>2014-04-24 09:41:25 +0000
commit62247de8beb65c228ece7e0002b9fe2c0d31fe07 (patch)
treef1950587dce939c6b0d30f32e5c604f8674b6f44 /ipv6nd.c
parent76cc4ace703ef4ec9dce351d02473ea3f35d3df8 (diff)
downloaddhcpcd-62247de8beb65c228ece7e0002b9fe2c0d31fe07.tar.xz
Support older systems with different defines for IPV6_RECVHOPLIMIT and IPV6_RECVPKTINFO.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 5fbc0a55..615ad661 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -150,6 +150,14 @@ static void ipv6nd_handledata(void *arg);
memset(filterp, 0xff, sizeof(struct icmp6_filter));
#endif
+/* Support older systems with different defines */
+#if !defined(IPV6_RECVHOPLIMIT) && defined(IPV6_HOPLIMIT)
+#define IPV6_RECVHOPLIMIT IPV6_HOPLIMIT
+#endif
+#if !defined(IPV6_RECVPKTINFO) && defined(IPV6_PKTINFO)
+#define IPV6_RECVPKTINFO IPV6_PKTINFO
+#endif
+
static int
ipv6nd_open(struct dhcpcd_ctx *dctx)
{