Browse Source

ipv6.c: force stateless_config to 0 if stateful_config is set also

If stateful_config is set, we need to keep the DHCPv6 client running and
not only retrieve configuration but request addresses too. Hence set
stateless_config to 0 if both managed and other are set in Router
Advertisements. This case is currently underdefined but we want stateful
configuration to happen in any case.

Signed-off-by: Philipp Kern <pkern@debian.org>
tags/1.90
Philipp Kern 8 years ago
parent
commit
439cc3cfdd
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      ipv6.c

+ 11
- 0
ipv6.c View File

@@ -214,6 +214,17 @@ int nc_v6_get_config_flags(struct debconfclient *client, struct netcfg_interface
}
}

/* In theory managed and other are independent of each other. In
* practise both being present means that addresses and configuration
* are available via DHCPv6. Hence set stateless_config to 0.
* Otherwise the autoconfiguration logic will only spawn a stateless
* client.
*/
if (interface->v6_stateful_config == 1 &&
interface->v6_stateless_config == 1) {
interface->v6_stateless_config = 0;
}

debconf_progress_stop(client);

if (interface->v6_stateful_config != -1 &&


Loading…
Cancel
Save