From 777f5942fa7d6245f6ad29daa1daecc400344d37 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 20 Oct 2025 21:35:20 +0000 Subject: [PATCH] system-linux: only parse device status for AF_UNSPEC link messages In bridge messages (family = AF_BRIDGE), the commands are the same, but the contents are different, and this can confuse netifd into thinking that devices are down, while they are actually up. Signed-off-by: Felix Fietkau --- system-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system-linux.c b/system-linux.c index ceeabe3..0160b30 100644 --- a/system-linux.c +++ b/system-linux.c @@ -737,6 +737,9 @@ static int cb_rtnl_event(struct nl_msg *msg, void *arg) if (nh->nlmsg_type != RTM_NEWLINK && nh->nlmsg_type != RTM_DELLINK) return 0; + if (ifi->ifi_family != AF_UNSPEC) + return 0; + nlmsg_parse(nh, sizeof(struct ifinfomsg), nla, __IFLA_MAX - 1, NULL); if (!nla[IFLA_IFNAME]) return 0; -- 2.30.2