From: Yu Watanabe Date: Tue, 5 Mar 2024 07:22:09 +0000 (+0900) Subject: sd-netlink: allow to call rtnl_get_link_info() without iftype and flags X-Git-Tag: v256-rc1~641 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=21fdecdc1311139bde8176d351a7a341ba279fcd;p=systemd%2F.git sd-netlink: allow to call rtnl_get_link_info() without iftype and flags --- diff --git a/src/libsystemd/sd-netlink/netlink-util.c b/src/libsystemd/sd-netlink/netlink-util.c index e634fd3378..90616094bc 100644 --- a/src/libsystemd/sd-netlink/netlink-util.c +++ b/src/libsystemd/sd-netlink/netlink-util.c @@ -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) {