sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / quagga / 0001-fix-ipctl-forwarding.patch
blobe2e3421edb112c5d6a2264f2c52308117d987507
1 Add definitions for IPCTL_FORWARDING and IP6CTL_FORWARDING.
3 Inspired from
4 http://svn.gnumonks.org/trunk/grouter/build/src/quagga/quagga/quagga-0.99.1-forward_sysctl-2.6.14.patch
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Index: quagga-0.99.16/zebra/ipforward_sysctl.c
9 ===================================================================
10 --- quagga-0.99.16.orig/zebra/ipforward_sysctl.c 2010-06-20 23:40:45.000000000 +0200
11 +++ quagga-0.99.16/zebra/ipforward_sysctl.c 2010-06-20 23:41:37.000000000 +0200
12 @@ -31,6 +31,15 @@
14 #define MIB_SIZ 4
16 +/* Fix for recent (2.6.14) kernel headers */
17 +#ifndef IPCTL_FORWARDING
18 +#define IPCTL_FORWARDING NET_IPV4_FORWARD
19 +#endif
21 +#ifndef IP6CTL_FORWARDING
22 +#define IP6CTL_FORWARDING NET_IPV6_FORWARDING
23 +#endif
25 extern struct zebra_privs_t zserv_privs;
27 /* IPv4 forwarding control MIB. */