proto_6to4.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. local map, section, net = ...
  4. local ipaddr, defaultroute, metric, ttl, mtu
  5. ipaddr = section:taboption("general", Value, "ipaddr",
  6. translate("Local IPv4 address"),
  7. translate("Leave empty to use the current WAN address"))
  8. ipaddr.datatype = "ip4addr"
  9. defaultroute = section:taboption("advanced", Flag, "defaultroute",
  10. translate("Use default gateway"),
  11. translate("If unchecked, no default route is configured"))
  12. defaultroute.default = defaultroute.enabled
  13. metric = section:taboption("advanced", Value, "metric",
  14. translate("Use gateway metric"))
  15. metric.placeholder = "0"
  16. metric.datatype = "uinteger"
  17. metric:depends("defaultroute", defaultroute.enabled)
  18. ttl = section:taboption("advanced", Value, "ttl", translate("Use TTL on tunnel interface"))
  19. ttl.placeholder = "64"
  20. ttl.datatype = "range(1,255)"
  21. mtu = section:taboption("advanced", Value, "mtu", translate("Use MTU on tunnel interface"))
  22. mtu.placeholder = "1280"
  23. mtu.datatype = "max(9200)"