summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-04 08:15:54 +0000
committerDonald Sharp <sharpd@nvidia.com>2023-11-07 06:46:19 -0500
commit315aa6cde48bbe5af08f61778d70f72aa0f9648a (patch)
tree0cf61da735151e7fbd2d9760bb8dae77af747576 /lib/zebra.h
parentf57763eaed67e2f1cb9547cfc3876e29410df577 (diff)
*: Remove netlink headers from lib/zebra.h
The headers associated with netlink code really only belong in those that need it. Move these headers out of lib/zebra.h and into more appropriate places. bgp's usage of the RT_TABLE_XXX defines are probably not appropriate and will be cleaned up in future commits. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index b742e71848..3fe61c801e 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -115,11 +115,7 @@
#include <net/route.h>
-#ifdef HAVE_NETLINK
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-#include <linux/filter.h>
-#else
+#ifndef HAVE_NETLINK
#define RT_TABLE_MAIN 0
#define RT_TABLE_LOCAL RT_TABLE_MAIN
#endif /* HAVE_NETLINK */