]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: fix change detection
authorVincent Bernat <vincent@bernat.im>
Fri, 1 Jan 2016 19:40:30 +0000 (20:40 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 1 Jan 2016 19:42:30 +0000 (20:42 +0100)
When a port was set down then up, no change was detected because the
flags were not effectively compared. Fix in 196757 was incomplete.

src/lldpd-structs.h

index 1a46dd1b230c5fee889f943ffb557afb64b44ef8..afe9acdebceb0a8f270e2b6ea06fdc7403eaefe8 100644 (file)
@@ -247,7 +247,7 @@ struct lldpd_port {
        u_int8_t                 p_disable_tx:4; /* Should TX be disabled for this port? */
        /* Important: all fields that should be ignored to check if a port has
         * been changed should be before this mark. */
-#define LLDPD_PORT_START_MARKER (offsetof(struct lldpd_port, p_id_subtype))
+#define LLDPD_PORT_START_MARKER (offsetof(struct lldpd_port, _p_hardware_flags))
        int                      _p_hardware_flags; /* This is a copy of hardware flags. Do not use it! */
        u_int8_t                 p_id_subtype;
        char                    *p_id;