summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@users.noreply.github.com>2020-04-03 12:23:49 +0000
committerGitHub <noreply@github.com>2020-04-03 12:23:49 +0000
commit29b75a3191c449a660836b7f3b5ddb68dcd0e16c (patch)
treeb381b3c83e1a3fbfe9cb40c29e819c3c2bc30739 /src/if-bsd.c
parent14b675edb3e3be35c9979f2b5ddfe2a841c33ac9 (diff)
downloaddhcpcd-29b75a3191c449a660836b7f3b5ddb68dcd0e16c.tar.xz
use TEMP_PREFERRED/VALID_LIFETIME for OpenBSD
Shortly after dhcpcd started using these constants, they were dropped from OpenBSD kernel headers as they're only used by rad(8). Switch to dhcpcd's own constants instead, fixing build on recent -current.
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index d6c38903..52cb2b23 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -1730,14 +1730,14 @@ int
ip6_temp_preferred_lifetime(__unused const char *ifname)
{
- return ND6_PRIV_PREFERRED_LIFETIME;
+ return TEMP_PREFERRED_LIFETIME;
}
int
ip6_temp_valid_lifetime(__unused const char *ifname)
{
- return ND6_PRIV_VALID_LIFETIME;
+ return TEMP_VALID_LIFETIME;
}
#else /* __OpenBSD__ */