summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/nm-dhcp-systemd.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-02 20:19:16 +0100
committerThomas Haller <thaller@redhat.com>2015-03-02 20:28:00 +0100
commit8cb096266e067c69a305b7b0713a280c6854396c (patch)
treebf78a49dc4de21b648a4102c91cd1d6d81e95905 /src/dhcp-manager/nm-dhcp-systemd.c
parent738127763c520fbd171278a6d8fa14e9eec1c104 (diff)
downloadNetworkManager-th/systemd-dhcp-integration.tar.gz
dhcp: remove sd_dhcp6_client_set_ifname() functionth/systemd-dhcp-integration
This function was added to inject the ifname to the dhcp6 client. As dhcp_identifier_set_iaid() now looks up the name itself by calling if_indextoname(), this is no longer needed.
Diffstat (limited to 'src/dhcp-manager/nm-dhcp-systemd.c')
-rw-r--r--src/dhcp-manager/nm-dhcp-systemd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/dhcp-manager/nm-dhcp-systemd.c b/src/dhcp-manager/nm-dhcp-systemd.c
index 1ea836e586..de5bf2a9be 100644
--- a/src/dhcp-manager/nm-dhcp-systemd.c
+++ b/src/dhcp-manager/nm-dhcp-systemd.c
@@ -746,12 +746,6 @@ ip6_start (NMDhcpClient *client,
goto error;
}
- r = sd_dhcp6_client_set_ifname (priv->client6, iface);
- if (r < 0) {
- nm_log_warn (LOGD_DHCP6, "(%s): failed to set DHCP ifname (%d)", iface, r);
- goto error;
- }
-
r = sd_dhcp6_client_set_callback (priv->client6, dhcp6_event_cb, client);
if (r < 0) {
nm_log_warn (LOGD_DHCP6, "(%s): failed to set DHCP callback (%d)", iface, r);