summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/nm-dhcp-dhcpcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp-manager/nm-dhcp-dhcpcd.c')
-rw-r--r--src/dhcp-manager/nm-dhcp-dhcpcd.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/dhcp-manager/nm-dhcp-dhcpcd.c b/src/dhcp-manager/nm-dhcp-dhcpcd.c
index dc9bee130..dda96e2a0 100644
--- a/src/dhcp-manager/nm-dhcp-dhcpcd.c
+++ b/src/dhcp-manager/nm-dhcp-dhcpcd.c
@@ -73,7 +73,7 @@ nm_dhcp_dhcpcd_get_path (const char *try_first)
}
GSList *
-nm_dhcp_dhcpcd_get_lease_config (const char *iface, const char *uuid)
+nm_dhcp_dhcpcd_get_lease_config (const char *iface, const char *uuid, gboolean ipv6)
{
return NULL;
}
@@ -93,10 +93,10 @@ dhcpcd_child_setup (gpointer user_data G_GNUC_UNUSED)
}
static GPid
-real_ip4_start (NMDHCPClient *client,
- NMSettingIP4Config *s_ip4,
- guint8 *dhcp_anycast_addr,
- const char *hostname)
+ip4_start (NMDHCPClient *client,
+ NMSettingIP4Config *s_ip4,
+ guint8 *dhcp_anycast_addr,
+ const char *hostname)
{
NMDHCPDhcpcdPrivate *priv = NM_DHCP_DHCPCD_GET_PRIVATE (client);
GPtrArray *argv = NULL;
@@ -110,7 +110,7 @@ real_ip4_start (NMDHCPClient *client,
iface = nm_dhcp_client_get_iface (client);
uuid = nm_dhcp_client_get_uuid (client);
- priv->pid_file = g_strdup_printf (LOCALSTATEDIR "/run/dhcpcd-%s.pid", iface);
+ priv->pid_file = g_strdup_printf (NMSTATEDIR "/dhcpcd-%s.pid", iface);
if (!priv->pid_file) {
nm_log_warn (LOGD_DHCP4, "(%s): not enough memory for dhcpcd options.", iface);
return -1;
@@ -166,18 +166,18 @@ real_ip4_start (NMDHCPClient *client,
}
static GPid
-real_ip6_start (NMDHCPClient *client,
- NMSettingIP6Config *s_ip6,
- guint8 *dhcp_anycast_addr,
- const char *hostname,
- gboolean info_only)
+ip6_start (NMDHCPClient *client,
+ NMSettingIP6Config *s_ip6,
+ guint8 *dhcp_anycast_addr,
+ const char *hostname,
+ gboolean info_only)
{
nm_log_warn (LOGD_DHCP6, "the dhcpcd backend does not support IPv6.");
return -1;
}
static void
-real_stop (NMDHCPClient *client, gboolean release)
+stop (NMDHCPClient *client, gboolean release)
{
NMDHCPDhcpcdPrivate *priv = NM_DHCP_DHCPCD_GET_PRIVATE (client);
@@ -221,8 +221,8 @@ nm_dhcp_dhcpcd_class_init (NMDHCPDhcpcdClass *dhcpcd_class)
/* virtual methods */
object_class->dispose = dispose;
- client_class->ip4_start = real_ip4_start;
- client_class->ip6_start = real_ip6_start;
- client_class->stop = real_stop;
+ client_class->ip4_start = ip4_start;
+ client_class->ip6_start = ip6_start;
+ client_class->stop = stop;
}