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 <g.goller@proxmox.com>
This commit is contained in:
Gabriel Goller 2025-03-13 12:11:34 +01:00
parent 2ab8cce2e1
commit 86faed512f

View file

@ -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