diff options
author | Tom Gundersen <teg@jklm.no> | 2013-10-30 04:10:19 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-10-30 15:36:04 +0100 |
commit | 3e137a1b9a0eac2bf43d493d3302c3c959b6ccdb (patch) | |
tree | c62ca7aa5a75856fcf58ae14ba4f4cc545cca3f0 /src/udev/udev-event.c | |
parent | 415e7f65dbc66089f0d1b9de6785026596df88e7 (diff) |
udev: link-config - let udevd set the ifname
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r-- | src/udev/udev-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index bdf3a386c9..1242db9ef3 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -764,7 +764,7 @@ static int rename_netif(struct udev_event *event) if (r < 0) return r; - r = rtnl_set_link_properties(rtnl, udev_device_get_ifindex(dev), name, NULL, 0); + r = rtnl_set_link_name(rtnl, udev_device_get_ifindex(dev), name); if (r < 0) log_error("error changing net interface name %s to %s: %s", oldname, name, strerror(-r)); |