Add dyn_gw interval patch from #3102
[lede-routing/.git] / patches / 120-dyn_gw_interval.patch
1 --- olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw-orig.c      2007-10-31 15:14:47.000000000 +0100
2 +++ olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw.c   2007-10-31 15:15:17.000000000 +0100
3 @@ -92,7 +92,7 @@
4
5
6  /* set default interval, in case none is given in the config file */
7 -static int check_interval = 5;
8 +static double check_interval = 5;
9
10  /* list to store the Ping IP addresses given in the config file */
11  struct ping_list {
12 @@ -307,7 +307,7 @@
13      struct hna_list *li;
14      struct timespec remainder_spec;
15      /* the time to wait in "Interval" sec (see connfig), default=5sec */
16 -    struct timespec sleeptime_spec  = { check_interval, 0L };
17 +    struct timespec sleeptime_spec  = { (int) check_interval, 0L };
18
19      for(li = the_hna_list; li; li = li->next){
20        /* check for gw in table entry and if Ping IPs are given also do pings */