From: Felix Fietkau Date: Mon, 20 Oct 2025 21:35:20 +0000 (+0000) Subject: system-linux: only parse device status for AF_UNSPEC link messages X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=777f5942fa7d6245f6ad29daa1daecc400344d37;p=project%2Fnetifd.git 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 --- 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;