From 768a27ea7ba25257c79689af83ab37945dc1cc3c Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Thu, 29 May 2008 18:23:08 +0000 Subject: [zebra/linux] Use BPF to filter out responses, to try avoid netlink overruns 2008-05-29 Stephen Hemminger * 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. --- lib/zebra.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/zebra.h') 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 #include +#include +#include #else #define RT_TABLE_MAIN 0 #endif /* HAVE_NETLINK */ -- cgit v1.2.1