Skip to content

Commit eff5f22

Browse files
committed
netlink: Fix interface type match
Reviewed by: bz, glebius, pouria Fixes: 7e5bf68 ("netlink: add netlink support") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57167
1 parent fd9af1e commit eff5f22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sys/netlink/route/iface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ match_iface(if_t ifp, void *_arg)
428428

429429
if (attrs->ifi_index != 0 && attrs->ifi_index != if_getindex(ifp))
430430
return (false);
431-
if (attrs->ifi_type != 0 && attrs->ifi_index != if_gettype(ifp))
431+
if (attrs->ifi_type != 0 && attrs->ifi_type != if_gettype(ifp))
432432
return (false);
433433
if (attrs->ifla_ifname != NULL && strcmp(attrs->ifla_ifname, if_name(ifp)))
434434
return (false);

0 commit comments

Comments
 (0)