]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix netlink NL_PKT_BUF_SIZE
author高鹏 <gpstrive@gmail.com>
Wed, 21 Nov 2012 10:15:43 +0000 (18:15 +0800)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Jan 2013 21:06:04 +0000 (22:06 +0100)
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: 高鹏 <gpstrive@gmail.com>
[updated to apply after FPM patches]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/rt_netlink.h

index 529fa517a95623abf41388ea97a0f8d29902368d..452b3974ea2b9836f6b1472418732a760f8aa825 100644 (file)
@@ -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);