From 0c5525bbef508e8d72bea328febee96ff1c28a74 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 26 Jan 2020 15:10:52 +0100 Subject: [PATCH] netlink: fix detection of VLAN 1 --- src/daemon/netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c index fcb30c8b..d0164c8d 100644 --- a/src/daemon/netlink.c +++ b/src/daemon/netlink.c @@ -325,7 +325,7 @@ netlink_parse_afspec(struct interfaces_device *iff, struct rtattr *rta, int len) rta = RTA_NEXT(rta, len); } /* All enbridged interfaces will have VLAN 1 by default, ignore it */ - if (iff->vlan_bmap[0] == 1 && (num_bits_set(iff->vlan_bmap) == 1) + if (iff->vlan_bmap[0] == 2 && (num_bits_set(iff->vlan_bmap) == 1) && iff->pvid == 1) { log_debug("netlink", "found only default VLAN 1 on interface %s, removing", iff->name ? iff->name : "(unknown)"); -- 2.39.5