contrib/package: bump olsrd to 0.5.6-r7, refresh patches
[project/luci.git] / contrib / package / olsrd-luci / patches / 140-olsrd-optimize-size.patch
index d27a5fe..3c3dabd 100644 (file)
  }
  
  /*
-@@ -399,7 +405,11 @@
+@@ -385,7 +391,11 @@
   * @return pointer to hello_neighbor
   */
  struct hello_neighbor *
  {
    struct hello_neighbor *h;
  
-@@ -421,7 +431,11 @@
+@@ -407,7 +417,11 @@
   * @return pointer to tc_mpr_addr
   */
  struct tc_mpr_addr *
  {
    struct tc_mpr_addr *t;
  
-@@ -443,7 +457,11 @@
+@@ -429,7 +443,11 @@
   * @return pointer to lq_hello_neighbor
   */
  struct lq_hello_neighbor *
  {
    struct lq_hello_neighbor *h;
  
-@@ -465,7 +483,11 @@
+@@ -451,7 +469,11 @@
   * @return pointer to link_entry
   */
  struct link_entry *
  #include "tc_set.h"
  #include "link_set.h"
  #include "olsr_spf.h"
-@@ -212,6 +213,7 @@
+@@ -228,6 +229,7 @@
  
    return buffer->buf;
  }
  #ifndef LQ_PLUGIN_DEFAULT_H_
  #define LQ_PLUGIN_DEFAULT_H_
  
-@@ -75,6 +76,7 @@
+@@ -57,6 +58,7 @@
  extern struct lq_handler lq_etx_float_handler;
  
  #endif /*LQ_PLUGIN_DEFAULT_H_ */
  #include "tc_set.h"
  #include "link_set.h"
  #include "lq_plugin.h"
-@@ -223,6 +224,7 @@
+@@ -239,6 +240,7 @@
    snprintf(buffer->buf, sizeof(buffer->buf), "%.3f", (float)(cost) / LQ_FPM_LINKCOST_MULTIPLIER);
    return buffer->buf;
  }
  #ifndef LQ_ETX_FPM_
  #define LQ_ETX_FPM_
  
-@@ -79,6 +80,7 @@
+@@ -61,6 +62,7 @@
  extern struct lq_handler lq_etx_fpm_handler;
  
  #endif /*LQ_ETX_FPM_ */
   * Local Variables:
 --- a/src/process_routes.c
 +++ b/src/process_routes.c
-@@ -159,6 +159,7 @@
+@@ -158,6 +158,7 @@
  static void
  olsr_delete_kernel_route(struct rt_entry *rt)
  {
    if (!olsr_cnf->host_emul) {
      int16_t error = olsr_cnf->ip_version == AF_INET ? olsr_delroute_function(rt) : olsr_delroute6_function(rt);
  
-@@ -170,6 +171,12 @@
+@@ -169,6 +170,12 @@
        olsr_syslog(OLSR_LOG_ERR, "Delete route %s: %s", routestr, err_msg);
      }
    }
  }
  
  /**
-@@ -181,6 +188,7 @@
+@@ -180,6 +187,7 @@
  olsr_add_kernel_route(struct rt_entry *rt)
  {
  
    if (!olsr_cnf->host_emul) {
      int16_t error = (olsr_cnf->ip_version == AF_INET) ? olsr_addroute_function(rt) : olsr_addroute6_function(rt);
  
-@@ -199,6 +207,14 @@
+@@ -198,6 +206,14 @@
        rt->rt_metric = rt->rt_best->rtp_metric;
      }
    }
  }
  
  /**
-@@ -388,9 +404,11 @@
-   /* route additions */
-   olsr_add_kernel_routes(&add_kernel_list);
+@@ -348,9 +364,11 @@
+   /* route changes */
+   olsr_chg_kernel_routes(&chg_kernel_list);
  
 -#if DEBUG
 +#ifndef SVEN_OLA_UNBLOAT