Skip to content

Commit 6af9dcf

Browse files
committed
bgpd: Renumber the PEER_STATUS_XXX macros
These macros no longer had the bit position start at the first bit, since one flag was removed. Let's fix that. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 4697ff5 commit 6af9dcf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bgpd/bgpd.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,14 +1816,14 @@ struct peer {
18161816

18171817
/* Peer status flags. */
18181818
uint16_t sflags;
1819-
#define PEER_STATUS_PREFIX_OVERFLOW (1U << 1) /* prefix-overflow */
1820-
#define PEER_STATUS_CAPABILITY_OPEN (1U << 2) /* capability open send */
1821-
#define PEER_STATUS_GROUP (1U << 4) /* peer-group conf */
1822-
#define PEER_STATUS_NSF_MODE (1U << 5) /* NSF aware peer */
1823-
#define PEER_STATUS_NSF_WAIT (1U << 6) /* wait comeback peer */
1819+
#define PEER_STATUS_PREFIX_OVERFLOW (1U << 0) /* prefix-overflow */
1820+
#define PEER_STATUS_CAPABILITY_OPEN (1U << 1) /* capability open send */
1821+
#define PEER_STATUS_GROUP (1U << 2) /* peer-group conf */
1822+
#define PEER_STATUS_NSF_MODE (1U << 3) /* NSF aware peer */
1823+
#define PEER_STATUS_NSF_WAIT (1U << 4) /* wait comeback peer */
18241824
/* received extended format encoding for OPEN message */
1825-
#define PEER_STATUS_EXT_OPT_PARAMS_LENGTH (1U << 7)
1826-
#define PEER_STATUS_BFD_STRICT_HOLD_TIME_EXPIRED (1U << 8) /* BFD strict hold time expired */
1825+
#define PEER_STATUS_EXT_OPT_PARAMS_LENGTH (1U << 5)
1826+
#define PEER_STATUS_BFD_STRICT_HOLD_TIME_EXPIRED (1U << 6) /* BFD strict hold time expired */
18271827

18281828
/* Peer status af flags (reset in bgp_stop) */
18291829
uint16_t af_sflags[AFI_MAX][SAFI_MAX];

0 commit comments

Comments
 (0)