From 86faed512ffcd5b7bfbe16b6df3bdc07e74cb8a9 Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Thu, 13 Mar 2025 12:11:34 +0100 Subject: [PATCH] isisd: fix bit flag collision in options field Resolve conflict between F_ISIS_UNIT_TEST and ISIS_OPT_DUMMY_AS_LOOPBACK which were both using the same bit value (0x01). This collision caused unit test mode to be unintentionally enabled when DUMMY_AS_LOOPBACK was set. Signed-off-by: Gabriel Goller --- isisd/isisd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isisd/isisd.h b/isisd/isisd.h index ae39502023..48f6a5832d 100644 --- a/isisd/isisd.h +++ b/isisd/isisd.h @@ -76,9 +76,9 @@ struct isis_master { struct event_loop *master; /* Various global options */ uint8_t options; -#define ISIS_OPT_DUMMY_AS_LOOPBACK (1 << 0) +#define F_ISIS_UNIT_TEST (1 << 0) +#define ISIS_OPT_DUMMY_AS_LOOPBACK (1 << 1) }; -#define F_ISIS_UNIT_TEST 0x01 #define ISIS_DEFAULT_MAX_AREA_ADDRESSES 3 -- 2.39.5