diff options
| author | Roy Marples <roy@marples.name> | 2014-04-24 09:41:25 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-04-24 09:41:25 +0000 |
| commit | 62247de8beb65c228ece7e0002b9fe2c0d31fe07 (patch) | |
| tree | f1950587dce939c6b0d30f32e5c604f8674b6f44 /ipv6nd.c | |
| parent | 76cc4ace703ef4ec9dce351d02473ea3f35d3df8 (diff) | |
| download | dhcpcd-62247de8beb65c228ece7e0002b9fe2c0d31fe07.tar.xz | |
Support older systems with different defines for IPV6_RECVHOPLIMIT and IPV6_RECVPKTINFO.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |
