mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-25 16:42:37 +01:00
netconfig: Update l_netconfig API calls
Since l_netconfig's DHCPv6 client instance no longer sets parameters on the l_icmp6_client instance, call l_icmp6_client_set_nodelay() and l_icmp6_client_set_debug() directly. Also enable optimistic DAD to speed up IPv6 setup if available.
This commit is contained in:
parent
c084dcf6b8
commit
a2f805a3ae
@ -659,6 +659,7 @@ struct netconfig *netconfig_new(uint32_t ifindex)
|
||||
const char *debug_level = NULL;
|
||||
int dhcp_priority = L_LOG_INFO;
|
||||
struct l_dhcp6_client *dhcp6;
|
||||
struct l_icmp6_client *icmp6;
|
||||
|
||||
l_debug("Creating netconfig for interface: %d", ifindex);
|
||||
|
||||
@ -691,12 +692,17 @@ struct netconfig *netconfig_new(uint32_t ifindex)
|
||||
|
||||
dhcp6 = l_netconfig_get_dhcp6_client(netconfig->nc);
|
||||
l_dhcp6_client_set_lla_randomized(dhcp6, true);
|
||||
l_dhcp6_client_set_nodelay(dhcp6, true);
|
||||
|
||||
if (debug_level)
|
||||
icmp6 = l_netconfig_get_icmp6_client(netconfig->nc);
|
||||
l_icmp6_client_set_nodelay(icmp6, true);
|
||||
|
||||
if (debug_level) {
|
||||
l_dhcp6_client_set_debug(dhcp6, do_debug, "[DHCPv6] ", NULL);
|
||||
l_icmp6_client_set_debug(icmp6, do_debug, "[ICMPv6] ", NULL);
|
||||
}
|
||||
|
||||
l_netconfig_set_route_priority(netconfig->nc, ROUTE_PRIORITY_OFFSET);
|
||||
l_netconfig_set_optimistic_dad_enabled(netconfig->nc, true);
|
||||
|
||||
return netconfig;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user