diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-25 17:36:51 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-04-25 17:36:51 +0200 |
commit | d2773e59de3dd970d861e9f996bc48de20ef4314 (patch) | |
tree | d971c138bb0cbf5a421a6e4ebe7c41330685a361 /src/libsystemd/sd-netlink/rtnl-message.c | |
parent | 4f4d6ee4be1c5d3bb2f3ebce7d2d332285963830 (diff) |
nspawn: explicitly remove veth links after use (#3111)
* sd-netlink: permit RTM_DELLINK messages with no ifindex
This is useful for removing network interfaces by name.
* nspawn: explicitly remove veth links we created after use
Sometimes the kernel keeps veth links pinned after the namespace they have been
joined to died. Let's hence explicitly remove veth links after use.
Fixes: #2173
Diffstat (limited to 'src/libsystemd/sd-netlink/rtnl-message.c')
-rw-r--r-- | src/libsystemd/sd-netlink/rtnl-message.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/rtnl-message.c b/src/libsystemd/sd-netlink/rtnl-message.c index 255526bf32..f251536a89 100644 --- a/src/libsystemd/sd-netlink/rtnl-message.c +++ b/src/libsystemd/sd-netlink/rtnl-message.c @@ -402,7 +402,6 @@ int sd_rtnl_message_new_link(sd_netlink *rtnl, sd_netlink_message **ret, int r; assert_return(rtnl_message_type_is_link(nlmsg_type), -EINVAL); - assert_return(nlmsg_type != RTM_DELLINK || index > 0, -EINVAL); assert_return(ret, -EINVAL); r = message_new(rtnl, ret, nlmsg_type); |