From: Alexandros C. Couloumbis Date: Wed, 27 Oct 2010 10:34:32 +0000 (+0000) Subject: net/quagga: fix multipath detection. (closes #8136) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=6fad6e9ebf3ceb5ab979c63a699ae3e61f25942b;ds=sidebyside net/quagga: fix multipath detection. (closes #8136) SVN-Revision: 23654 --- diff --git a/net/quagga/patches/100-quagga_multipath_caching_policy.patch b/net/quagga/patches/100-quagga_multipath_caching_policy.patch index dae45e2087..1d4a4ef8bc 100644 --- a/net/quagga/patches/100-quagga_multipath_caching_policy.patch +++ b/net/quagga/patches/100-quagga_multipath_caching_policy.patch @@ -18,7 +18,7 @@ +dnl ---------- +AC_MSG_CHECKING(for support of multipath alg. in netlink) + if grep RTA_MP_ALGO linux/rtnetlink.h >/dev/null 2>&1; then -+ AC_DEFINE(HAVE_RT_MP_ALGO,,RTA_MP exist in rtnetlink) ++ AC_DEFINE(HAVE_LINUX_IP_MP_ALG_H,,RTA_MP exist in rtnetlink) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) @@ -122,7 +122,7 @@ if (src) addattr_l (&req.n, sizeof req, RTA_PREFSRC, &src->ipv4, bytelen); -+#ifdef HAVE_RT_MP_ALGO ++#ifdef HAVE_LINUX_IP_MP_ALG_H + if (zebrad.mpath != IP_MP_ALG_NONE) + { + if (IS_ZEBRA_DEBUG_KERNEL) @@ -159,7 +159,7 @@ }; -+#ifdef HAVE_RT_MP_ALGO ++#ifdef HAVE_LINUX_IP_MP_ALG_H +DEFUN (multipath_rr, + multipath_rr_cmd, + "multipath rr", @@ -242,7 +242,7 @@ + 1 +}; + -+#endif /* HAVE_RT_MP_ALGO */ ++#endif /* HAVE_LINUX_IP_MP_ALG_H */ + /* Initialisation of zebra and installation of commands. */ void @@ -251,7 +251,7 @@ install_node (&table_node, config_write_table); install_node (&forwarding_node, config_write_forwarding); -+#ifdef HAVE_RT_MP_ALGO ++#ifdef HAVE_LINUX_IP_MP_ALG_H + install_node (&multipath_node, config_write_multipath); +#endif + @@ -262,14 +262,14 @@ install_element (VIEW_NODE, &show_table_cmd); install_element (ENABLE_NODE, &show_table_cmd); install_element (CONFIG_NODE, &config_table_cmd); -+#ifdef HAVE_RT_MP_ALGO ++#ifdef HAVE_LINUX_IP_MP_ALG_H + install_element (CONFIG_NODE, &multipath_rr_cmd); + install_element (CONFIG_NODE, &multipath_drr_cmd); + install_element (CONFIG_NODE, &multipath_random_cmd); + install_element (CONFIG_NODE, &multipath_wrandom_cmd); + install_element (CONFIG_NODE, &no_multipath_cmd); + install_element (ENABLE_NODE, &show_multipath_cmd); -+#endif /* HAVE_RT_MP_ALGO */ ++#endif /* HAVE_LINUX_IP_MP_ALG_H */ #endif /* HAVE_NETLINK */ #ifdef HAVE_IPV6