]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Lib: Add common macros for undefined integer values in config
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 25 Sep 2025 15:06:50 +0000 (17:06 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 12 May 2026 16:54:32 +0000 (18:54 +0200)
lib/birdlib.h

index 807efa22be9126685a027f266eae840c545dac8a..eb727c9d3edf7bff7636521f36e4d6add224275d 100644 (file)
@@ -51,6 +51,9 @@ static inline int uint_cmp(uint i1, uint i2)
 static inline int u64_cmp(u64 i1, u64 i2)
 { return (int)(i1 > i2) - (int)(i1 < i2); }
 
+#define U32_UNDEF ((u32) -1)
+#define U64_UNDEF ((u64) -1)
+
 
 /* Bitfield macros */