mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
sd-netlink: allow to call rtnl_get_link_info() without iftype and flags
This commit is contained in:
parent
70aece8193
commit
21fdecdc13
@ -509,7 +509,7 @@ int rtnl_get_link_info(
|
||||
assert(rtnl);
|
||||
assert(ifindex > 0);
|
||||
|
||||
if (!ret_iftype && !ret_flags)
|
||||
if (!ret_iftype && !ret_flags && !ret_kind && !ret_hw_addr && !ret_permanent_hw_addr)
|
||||
return 0;
|
||||
|
||||
if (!*rtnl) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user