mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
sd-netlink: permit RTM_DELLINK messages with no ifindex
This is useful for removing network interfaces by name.
This commit is contained in:
parent
4f4d6ee4be
commit
fa647aa978
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user