diff options
| author | Roy Marples <roy@marples.name> | 2017-04-22 00:00:51 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-04-22 00:00:51 +0100 |
| commit | 85a4d9004e12fd2696a29e050c4df662dc603068 (patch) | |
| tree | 3a19a24eafcadcb3b36c8c9b102507ec704545ef /src/if-bsd.c | |
| parent | 5c33e84e390728df6a33aadbaddd40d51bedca29 (diff) | |
| download | dhcpcd-85a4d9004e12fd2696a29e050c4df662dc603068.tar.xz | |
Newer OpenBSD is fixed for userland affecting address lifetime.
Thanks to Stuart Henderson.
Diffstat (limited to 'src/if-bsd.c')
| -rw-r--r-- | src/if-bsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c index addca622..40152cae 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -787,7 +787,7 @@ if_address6(unsigned char cmd, const struct ipv6_addr *ia) */ #if !((defined(__NetBSD_Version__) && __NetBSD_Version__ >= 799003600) || \ - (defined(__OpenBSD__))) + (defined(__OpenBSD__) && OpenBSD >= 201605)) if (cmd == RTM_NEWADDR && !(ia->flags & IPV6_AF_ADDED)) { ifa.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME; ifa.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME; @@ -795,8 +795,8 @@ if_address6(unsigned char cmd, const struct ipv6_addr *ia) } #endif -#if defined(__OpenBSD__) - /* BUT OpenBSD does not reset the address lifetime +#if defined(__OpenBSD__) && OpenBSD <= 201705 + /* BUT OpenBSD older than 6.2 does not reset the address lifetime * for subsequent calls... * Luckily dhcpcd will remove the lease when it expires so * just set an infinite lifetime, unless a temporary address. */ |
