]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix bit flag collision in options field 18377/head
authorGabriel Goller <g.goller@proxmox.com>
Thu, 13 Mar 2025 11:11:34 +0000 (12:11 +0100)
committerGabriel Goller <g.goller@proxmox.com>
Thu, 13 Mar 2025 15:51:04 +0000 (16:51 +0100)
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>
isisd/isisd.h

index ae39502023d404a62d3c1cea846690088ea2aac3..48f6a5832d511fc885970ff146e249a9982f8e00 100644 (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