From 913ff66ba30093d2fdc26af215f4bc0b3d359d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=B9=8F?= Date: Wed, 21 Nov 2012 18:15:43 +0800 Subject: zebra: fix netlink NL_PKT_BUF_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change default value of variable NL_PKT_BUF_SIZE to 8192UL. Cf. NLMSG_GOODSIZE definition of linux in include/linux/netlink.h for detail. Previously, on platforms with a page size greater than 8192, if you had added too many interfaces, zebra would not have enough buffer space to get the entire interface list. This resulted in an incomplete interface list. From: 高鹏 [updated to apply after FPM patches] Signed-off-by: David Lamparter --- zebra/rt_netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zebra/rt_netlink.h') diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h index 529fa517..452b3974 100644 --- a/zebra/rt_netlink.h +++ b/zebra/rt_netlink.h @@ -24,7 +24,7 @@ #ifdef HAVE_NETLINK -#define NL_PKT_BUF_SIZE 4096 +#define NL_PKT_BUF_SIZE 8192 extern int addattr32 (struct nlmsghdr *n, int maxlen, int type, int data); -- cgit v1.2.1