]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
netlink: fix detection of VLAN 1 376/head
authorVincent Bernat <vincent@bernat.ch>
Sun, 26 Jan 2020 14:10:52 +0000 (15:10 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 26 Jan 2020 14:12:08 +0000 (15:12 +0100)
src/daemon/netlink.c

index fcb30c8bd8d76fd591a27e3b73a86cca30a04ff8..d0164c8d88be647ac56feb83de94302fad95d08e 100644 (file)
@@ -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)");