mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
dhcp: fall back to 'internal' client for IPv6 when using 'nettools'
The 'nettools' client doesn't support IPv6, fall back to 'internal'.
(cherry picked from commit c0a825bc8e)
This commit is contained in:
parent
52241748e8
commit
30d2f6cacc
1 changed files with 0 additions and 13 deletions
|
|
@ -1208,18 +1208,6 @@ ip4_start (NMDhcpClient *client,
|
||||||
return TRUE;
|
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
|
static void
|
||||||
stop (NMDhcpClient *client,
|
stop (NMDhcpClient *client,
|
||||||
gboolean release)
|
gboolean release)
|
||||||
|
|
@ -1265,7 +1253,6 @@ nm_dhcp_nettools_class_init (NMDhcpNettoolsClass *class)
|
||||||
object_class->dispose = dispose;
|
object_class->dispose = dispose;
|
||||||
|
|
||||||
client_class->ip4_start = ip4_start;
|
client_class->ip4_start = ip4_start;
|
||||||
client_class->ip6_start = ip6_start;
|
|
||||||
client_class->accept = _accept;
|
client_class->accept = _accept;
|
||||||
client_class->decline = decline;
|
client_class->decline = decline;
|
||||||
client_class->stop = stop;
|
client_class->stop = stop;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue