git: eff5f220c379 - main - netlink: Fix interface type match
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 May 2026 18:34:23 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=eff5f220c379d4173fdc0e5ec00380888bf7649a
commit eff5f220c379d4173fdc0e5ec00380888bf7649a
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-22 13:35:52 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-22 18:34:13 +0000
netlink: Fix interface type match
Reviewed by: bz, glebius, pouria
Fixes: 7e5bf68495cc ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57167
---
sys/netlink/route/iface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c
index d449e4114f24..5b6e58a598aa 100644
--- a/sys/netlink/route/iface.c
+++ b/sys/netlink/route/iface.c
@@ -428,7 +428,7 @@ match_iface(if_t ifp, void *_arg)
if (attrs->ifi_index != 0 && attrs->ifi_index != if_getindex(ifp))
return (false);
- if (attrs->ifi_type != 0 && attrs->ifi_index != if_gettype(ifp))
+ if (attrs->ifi_type != 0 && attrs->ifi_type != if_gettype(ifp))
return (false);
if (attrs->ifla_ifname != NULL && strcmp(attrs->ifla_ifname, if_name(ifp)))
return (false);