summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-05-29 18:23:08 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-05-29 18:23:08 +0000
commit768a27ea7ba25257c79689af83ab37945dc1cc3c (patch)
treed3d9b822a29090a8cfee41b4ae3f74248e5950fa /lib
parent311064ddc5c52f6859cf1e6e8636c19a2e705147 (diff)
[zebra/linux] Use BPF to filter out responses, to try avoid netlink overruns
2008-05-29 Stephen Hemminger <stephen.hemminger@vyatta.com> * rt_netlink.c: (netlink_install_filter) BPF filter to catch and drop responses to zebra's own route messages. (kernel_init) add BPF filter on the netlink socket.
Diffstat (limited to 'lib')
-rw-r--r--lib/zebra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 150aa2c5..2716460f 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -162,6 +162,8 @@ typedef int socklen_t;
#ifdef HAVE_NETLINK
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
+#include <linux/filter.h>
+#include <stddef.h>
#else
#define RT_TABLE_MAIN 0
#endif /* HAVE_NETLINK */