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 d5b771096e8444f0a6ee32bc234cc8dac54ad8cc..5fcc748c88de4515aba32db8f25b3e9099e8f03c 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 50fa556e1d106e12fcc795e4661b35f04ad361f1..5e490c3403c8fad308dca16bc71d168364b53cb0 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'