2010-10-14 16:41:09 +00:00
|
|
|
Add definitions for IPCTL_FORWARDING and IP6CTL_FORWARDING.
|
|
|
|
|
|
|
|
Inspired from
|
|
|
|
http://svn.gnumonks.org/trunk/grouter/build/src/quagga/quagga/quagga-0.99.1-forward_sysctl-2.6.14.patch
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
|
2010-12-07 17:44:19 +00:00
|
|
|
--- a/zebra/ipforward_sysctl.c
|
|
|
|
+++ b/zebra/ipforward_sysctl.c
|
2010-10-14 16:41:09 +00:00
|
|
|
@@ -31,6 +31,15 @@
|
2010-12-07 17:44:19 +00:00
|
|
|
|
2010-10-14 16:41:09 +00:00
|
|
|
#define MIB_SIZ 4
|
2010-12-07 17:44:19 +00:00
|
|
|
|
2010-10-14 16:41:09 +00:00
|
|
|
+/* Fix for recent (2.6.14) kernel headers */
|
|
|
|
+#ifndef IPCTL_FORWARDING
|
|
|
|
+#define IPCTL_FORWARDING NET_IPV4_FORWARD
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef IP6CTL_FORWARDING
|
|
|
|
+#define IP6CTL_FORWARDING NET_IPV6_FORWARDING
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
extern struct zebra_privs_t zserv_privs;
|
2010-12-07 17:44:19 +00:00
|
|
|
|
2010-10-14 16:41:09 +00:00
|
|
|
/* IPv4 forwarding control MIB. */
|