From: Vincent Bernat Date: Fri, 1 Jan 2016 19:40:30 +0000 (+0100) Subject: lldpd: fix change detection X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71c1fb8facdbd65de9a2f857f798ec7074b36cf8;p=thirdparty%2Flldpd.git lldpd: fix change detection When a port was set down then up, no change was detected because the flags were not effectively compared. Fix in 196757 was incomplete. --- diff --git a/src/lldpd-structs.h b/src/lldpd-structs.h index 1a46dd1b..afe9acde 100644 --- a/src/lldpd-structs.h +++ b/src/lldpd-structs.h @@ -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;