]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/lldpd.c
Major rewrite for packet builder and parser.
[thirdparty/lldpd.git] / src / lldpd.c
index 4ef4526399479279bb64504df17beba2cdca5bfc..5f3b7dece62faaaddf9e6c43acc11975ef858db0 100644 (file)
@@ -744,8 +744,8 @@ lldpd_decode(struct lldpd *cfg, char *frame, int s,
        int guess = LLDPD_MODE_LLDP;
 
        /* Discard VLAN frames */
-       if ((s >= sizeof(struct ieee8023)) &&
-           (((struct ieee8023*)frame)->size == htons(ETHERTYPE_VLAN)))
+       if ((s >= sizeof(struct ethhdr)) &&
+           (((struct ethhdr*)frame)->h_proto == htons(ETHERTYPE_VLAN)))
                return;
 
        if ((hardware->h_rlastframe != NULL) &&