diff options
| author | Roy Marples <roy@marples.name> | 2017-11-14 16:41:59 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-11-14 16:41:59 +0000 |
| commit | ae715b1be3d1df1202af6c6f6923a40b07c9ea3c (patch) | |
| tree | 92f16c8ffff3a1517ac960d3dc886d96d55b545c /src/ipv6nd.c | |
| parent | 8d4fec06cd080de8a6b16fe35b8a03c56d1b94e4 (diff) | |
| download | dhcpcd-ae715b1be3d1df1202af6c6f6923a40b07c9ea3c.tar.xz | |
DHCPv6: confirm lease on carrier up
On some platforms which preserve state when carrier goes down,
such as NetBSD-8, the state does not enter the CONFIRM state.
Add more logic to dhcp6_start so that we can better control this
from the various call points.
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c index a5b032ed..a4bae15b 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1095,7 +1095,7 @@ handle_flag: #define LOG_DHCP6 logdebug #endif if (rap->flags & ND_RA_FLAG_MANAGED) { - if (new_data && dhcp6_start(ifp, DH6S_INIT) == -1) + if (new_data && dhcp6_start(ifp, DH6S_REQUEST) == -1) LOG_DHCP6("dhcp6_start: %s", ifp->name); } else if (rap->flags & ND_RA_FLAG_OTHER) { if (new_data && dhcp6_start(ifp, DH6S_INFORM) == -1) |
