contrib/package, applications/luci-olsr: implement NatThreshold to minimize gateway...
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 21 Nov 2009 00:22:35 +0000 (00:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 21 Nov 2009 00:22:35 +0000 (00:22 +0000)
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
contrib/package/olsrd-luci/files/etc/config/olsrd

index d5b7710..5fcc748 100644 (file)
@@ -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"))
index 50fa556..5e490c3 100644 (file)
@@ -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'