Changeset 23654 for packages


Ignore:
Timestamp:
2010-10-27T12:34:32+02:00 (6 years ago)
Author:
acoul
Message:

net/quagga: fix multipath detection. (closes #8136)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/quagga/patches/100-quagga_multipath_caching_policy.patch

    r23464 r23654  
    1919+AC_MSG_CHECKING(for support of multipath alg. in netlink) 
    2020+  if grep RTA_MP_ALGO linux/rtnetlink.h >/dev/null 2>&1; then 
    21 +    AC_DEFINE(HAVE_RT_MP_ALGO,,RTA_MP exist in rtnetlink) 
     21+    AC_DEFINE(HAVE_LINUX_IP_MP_ALG_H,,RTA_MP exist in rtnetlink) 
    2222+    AC_MSG_RESULT(yes) 
    2323+  else 
     
    123123         addattr_l (&req.n, sizeof req, RTA_PREFSRC, &src->ipv4, bytelen); 
    124124  
    125 +#ifdef HAVE_RT_MP_ALGO 
     125+#ifdef HAVE_LINUX_IP_MP_ALG_H 
    126126+       if (zebrad.mpath != IP_MP_ALG_NONE) 
    127127+       { 
     
    161161  
    162162 
    163 +#ifdef HAVE_RT_MP_ALGO 
     163+#ifdef HAVE_LINUX_IP_MP_ALG_H 
    164164+DEFUN (multipath_rr, 
    165165+       multipath_rr_cmd, 
     
    244244+}; 
    245245+ 
    246 +#endif /* HAVE_RT_MP_ALGO */ 
     246+#endif /* HAVE_LINUX_IP_MP_ALG_H */ 
    247247+ 
    248248 /* Initialisation of zebra and installation of commands. */ 
     
    253253   install_node (&forwarding_node, config_write_forwarding); 
    254254  
    255 +#ifdef HAVE_RT_MP_ALGO 
     255+#ifdef HAVE_LINUX_IP_MP_ALG_H 
    256256+  install_node (&multipath_node, config_write_multipath); 
    257257+#endif 
     
    264264   install_element (ENABLE_NODE, &show_table_cmd); 
    265265   install_element (CONFIG_NODE, &config_table_cmd); 
    266 +#ifdef HAVE_RT_MP_ALGO 
     266+#ifdef HAVE_LINUX_IP_MP_ALG_H 
    267267+  install_element (CONFIG_NODE, &multipath_rr_cmd); 
    268268+  install_element (CONFIG_NODE, &multipath_drr_cmd); 
     
    271271+  install_element (CONFIG_NODE, &no_multipath_cmd); 
    272272+  install_element (ENABLE_NODE, &show_multipath_cmd); 
    273 +#endif /* HAVE_RT_MP_ALGO */ 
     273+#endif /* HAVE_LINUX_IP_MP_ALG_H */ 
    274274 #endif /* HAVE_NETLINK */ 
    275275  
Note: See TracChangeset for help on using the changeset viewer.