Add dyn_gw interval patch from #3102
authorFlorian Fainelli <florian@openwrt.org>
Sun, 3 Feb 2008 10:51:09 +0000 (10:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 3 Feb 2008 10:51:09 +0000 (10:51 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@10371 3c298f89-4303-0410-b956-a3cf2f4a3e73

patches/120-dyn_gw_interval.patch [new file with mode: 0644]

diff --git a/patches/120-dyn_gw_interval.patch b/patches/120-dyn_gw_interval.patch
new file mode 100644 (file)
index 0000000..688b344
--- /dev/null
@@ -0,0 +1,20 @@
+--- olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw-orig.c      2007-10-31 15:14:47.000000000 +0100
++++ olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw.c   2007-10-31 15:15:17.000000000 +0100
+@@ -92,7 +92,7 @@
+
+
+ /* set default interval, in case none is given in the config file */
+-static int check_interval = 5;
++static double check_interval = 5;
+
+ /* list to store the Ping IP addresses given in the config file */
+ struct ping_list {
+@@ -307,7 +307,7 @@
+     struct hna_list *li;
+     struct timespec remainder_spec;
+     /* the time to wait in "Interval" sec (see connfig), default=5sec */
+-    struct timespec sleeptime_spec  = { check_interval, 0L };
++    struct timespec sleeptime_spec  = { (int) check_interval, 0L };
+
+     for(li = the_hna_list; li; li = li->next){
+       /* check for gw in table entry and if Ping IPs are given also do pings */