git: beee13213e0a - stable/15 - netlink: Fix interface type match
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jun 2026 14:09:40 UTC
The branch stable/15 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=beee13213e0a50e29cd693f16aaf8785e03f6c4d
commit beee13213e0a50e29cd693f16aaf8785e03f6c4d
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-22 13:35:52 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-06-09 13:40:28 +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
(cherry picked from commit eff5f220c379d4173fdc0e5ec00380888bf7649a)
---
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 0095ba869c51..91d2d266822b 100644
--- a/sys/netlink/route/iface.c
+++ b/sys/netlink/route/iface.c
@@ -423,7 +423,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);