summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/olsrd-luci/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-15 23:24:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-15 23:24:54 +0000
commite8375042814c6334b7506fd81dcecb040fd638db (patch)
tree4c12702b1a4328059899de45c2dc6d79f2498d17 /contrib/package/olsrd-luci/patches
parente10d64e3e09dee27d1ddf35ba3efaf8bddb8729b (diff)
* luci/contrib/olsr: add patch to fix HNA plugin parameter in dyngw
Diffstat (limited to 'contrib/package/olsrd-luci/patches')
-rw-r--r--contrib/package/olsrd-luci/patches/200-olsrd-dyngw-hna.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/package/olsrd-luci/patches/200-olsrd-dyngw-hna.patch b/contrib/package/olsrd-luci/patches/200-olsrd-dyngw-hna.patch
new file mode 100644
index 0000000000..8b4e9c408a
--- /dev/null
+++ b/contrib/package/olsrd-luci/patches/200-olsrd-dyngw-hna.patch
@@ -0,0 +1,14 @@
+diff -urb olsrd-0.5.6.orig/lib/dyn_gw/src/olsrd_dyn_gw.c olsrd-0.5.6/lib/dyn_gw/src/olsrd_dyn_gw.c
+--- olsrd-0.5.6.orig/lib/dyn_gw/src/olsrd_dyn_gw.c 2008-09-16 01:14:44.000000000 +0200
++++ olsrd-0.5.6/lib/dyn_gw/src/olsrd_dyn_gw.c 2008-09-16 01:26:55.000000000 +0200
+@@ -191,8 +191,8 @@
+ }
+
+ //printf("GOT: %s(%08x)",inet_ntoa(foo_addr),foo_addr.s_addr);
+- if (inet_pton(olsr_cnf->ip_version, s_netaddr, &temp_netmask) <= 0) {
+- OLSR_PRINTF(0, "Illegal netmask \"%s\"", s_netaddr);
++ if (inet_pton(olsr_cnf->ip_version, s_mask, &temp_netmask) <= 0) {
++ OLSR_PRINTF(0, "Illegal netmask \"%s\"", s_mask);
+ return 1;
+ }
+