Skip to content

Commit

Permalink
Fix: Apply DNS from RA rdnss after interface ifdown/ifup (bsc#1181429)
Browse files Browse the repository at this point in the history
On ifdown, the call `ni_auto6_release()` set the `auto6->enabled` state
to FALSE. This state is never changed to TRUE even if we do a explicit
`ni_auto6_acquire()`.
  • Loading branch information
cfconrad committed Mar 10, 2022
1 parent 8bc44ba commit 7b620cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/auto6.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ ni_auto6_acquire(ni_netdev_t *dev, const ni_auto6_request_t *req)
if (!dev || !(auto6 = ni_netdev_get_auto6(dev)) || !req || !req->enabled)
return -1;

auto6->enabled = TRUE;
ni_uuid_generate(&auto6->uuid);
if (!(lease = ni_auto6_get_lease(dev))) {
if ((lease = ni_auto6_new_lease(NI_ADDRCONF_STATE_REQUESTING, &auto6->uuid))) {
Expand Down

0 comments on commit 7b620cc

Please sign in to comment.