mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 14:10:08 +01:00
dhcp: fall back to 'internal' client for IPv6 when using 'nettools'
The 'nettools' client doesn't support IPv6, fall back to 'internal'.
This commit is contained in:
parent
397b05e8ba
commit
c0a825bc8e
1 changed files with 0 additions and 13 deletions
|
|
@ -1206,18 +1206,6 @@ ip4_start (NMDhcpClient *client,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
ip6_start (NMDhcpClient *client,
|
||||
const char *dhcp_anycast_addr,
|
||||
const struct in6_addr *ll_addr,
|
||||
NMSettingIP6ConfigPrivacy privacy,
|
||||
guint needed_prefixes,
|
||||
GError **error)
|
||||
{
|
||||
nm_utils_error_set_literal (error, NM_UTILS_ERROR_UNKNOWN, "nettools plugin does not support IPv6");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
stop (NMDhcpClient *client,
|
||||
gboolean release)
|
||||
|
|
@ -1263,7 +1251,6 @@ nm_dhcp_nettools_class_init (NMDhcpNettoolsClass *class)
|
|||
object_class->dispose = dispose;
|
||||
|
||||
client_class->ip4_start = ip4_start;
|
||||
client_class->ip6_start = ip6_start;
|
||||
client_class->accept = _accept;
|
||||
client_class->decline = decline;
|
||||
client_class->stop = stop;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue