* change. To do this, we zero out fields that are not
* significant, marshal the port, then restore. */
struct lldpd_port *port = &hardware->h_lport;
+ /* Take the current flags into account to detect a change. */
+ port->_p_hardware_flags = hardware->h_flags;
u_int8_t *output = NULL;
ssize_t output_len;
char save[LLDPD_PORT_START_MARKER];
/* 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))
+ int _p_hardware_flags; /* This is a copy of hardware flags. Do not use it! */
u_int8_t p_id_subtype;
char *p_id;
int p_id_len;