]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: fix bitfield
authorWataru Ashihara <wsh@iij.ad.jp>
Wed, 4 Sep 2019 06:52:55 +0000 (15:52 +0900)
committerVincent Bernat <vincent@bernat.ch>
Wed, 4 Sep 2019 08:35:13 +0000 (10:35 +0200)
src/lldpd-structs.h

index f6b03d7de821b4fc458d84ebc2a9203d2f8f760d..60187bb56399c148a318ad0a9237a304a7b0645c 100644 (file)
@@ -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))