]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix RT_TABLE_LOCAL for bsd builds
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 14 Sep 2023 11:52:25 +0000 (13:52 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 20 Oct 2023 11:28:52 +0000 (13:28 +0200)
The routing table numbers are specific to linux builds, and the
RT_TABLE_xxx are usually defined in linux headers. The bsd builds
do not benefit from this definition: some RT_TABLE_xxx defines
are missing for those builds.

Fix this by appending RT_TABLE_LOCAL define for bsd headers.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/zebra.h

index 42e6a97ff812aaa93a6e007084d5b1104a530b35..b742e71848f521df24857f2c65c6385ebbd9fe28 100644 (file)
 #include <linux/filter.h>
 #else
 #define RT_TABLE_MAIN          0
+#define RT_TABLE_LOCAL         RT_TABLE_MAIN
 #endif /* HAVE_NETLINK */
 
 #include <netdb.h>