From: Wataru Ashihara Date: Wed, 4 Sep 2019 06:52:55 +0000 (+0900) Subject: lldpd: fix bitfield X-Git-Tag: 1.0.5~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d94afe74b665c63b3cb9681f131706a11f1faf75;p=thirdparty%2Flldpd.git lldpd: fix bitfield --- diff --git a/src/lldpd-structs.h b/src/lldpd-structs.h index f6b03d7d..60187bb5 100644 --- a/src/lldpd-structs.h +++ b/src/lldpd-structs.h @@ -244,9 +244,9 @@ struct lldpd_port { struct lldpd_frame *p_lastframe; /* Frame received during last update */ u_int8_t p_protocol; /* Protocol used to get this port */ u_int8_t p_hidden_in:1; /* Considered as hidden for reception */ - u_int8_t p_hidden_out:2; /* Considered as hidden for emission */ - u_int8_t p_disable_rx:3; /* Should RX be disabled for this port? */ - u_int8_t p_disable_tx:4; /* Should TX be disabled for this port? */ + u_int8_t p_hidden_out:1; /* Considered as hidden for emission */ + u_int8_t p_disable_rx:1; /* Should RX be disabled for this port? */ + u_int8_t p_disable_tx:1; /* 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_hardware_flags))