summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua2
-rw-r--r--contrib/package/olsrd-luci/files/etc/config/olsrd1
2 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
index d5b771096..5fcc748c8 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
@@ -90,6 +90,8 @@ for i=0,7 do
end
willingness.optional = true
+natthr = s:option(Value, "NatThreshold")
+natthr.optional = true
i = m:section(TypedSection, "Interface", translate("Interfaces"))
diff --git a/contrib/package/olsrd-luci/files/etc/config/olsrd b/contrib/package/olsrd-luci/files/etc/config/olsrd
index 50fa556e1..5e490c340 100644
--- a/contrib/package/olsrd-luci/files/etc/config/olsrd
+++ b/contrib/package/olsrd-luci/files/etc/config/olsrd
@@ -2,6 +2,7 @@ config 'olsrd'
option 'IpVersion' '4'
option 'FIBMetric' 'flat'
option 'LinkQualityAlgorithm' 'etx_ff'
+ option 'NatThreshold' '0.75'
config 'Interface'
option 'ignore' '1'