summaryrefslogtreecommitdiffstats
path: root/package/quagga/quagga-fix-ipctl-forwarding.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-09-30 21:50:04 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-09-30 21:50:43 +0200
commitb8ce1fb184e1308a53ab7f58a1fbcf8add0c3c73 (patch)
treee06f685e025bd94dc9570edac399dbbfe93317d8 /package/quagga/quagga-fix-ipctl-forwarding.patch
parent9f36bd4976ce4fe0e108611ac82a694e434b1b7c (diff)
downloadbuildroot-novena-b8ce1fb184e1308a53ab7f58a1fbcf8add0c3c73.tar.gz
buildroot-novena-b8ce1fb184e1308a53ab7f58a1fbcf8add0c3c73.zip
quagga: bump version, fix conflicting options, enhance help
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/quagga/quagga-fix-ipctl-forwarding.patch')
-rw-r--r--package/quagga/quagga-fix-ipctl-forwarding.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/quagga/quagga-fix-ipctl-forwarding.patch b/package/quagga/quagga-fix-ipctl-forwarding.patch
new file mode 100644
index 000000000..e2e3421ed
--- /dev/null
+++ b/package/quagga/quagga-fix-ipctl-forwarding.patch
@@ -0,0 +1,27 @@
+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>
+
+Index: quagga-0.99.16/zebra/ipforward_sysctl.c
+===================================================================
+--- quagga-0.99.16.orig/zebra/ipforward_sysctl.c 2010-06-20 23:40:45.000000000 +0200
++++ quagga-0.99.16/zebra/ipforward_sysctl.c 2010-06-20 23:41:37.000000000 +0200
+@@ -31,6 +31,15 @@
+
+ #define MIB_SIZ 4
+
++/* 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;
+
+ /* IPv4 forwarding control MIB. */