Globally reduce copyright headers
[project/luci.git] / protocols / luci-proto-ipv6 / luasrc / model / cbi / admin_network / proto_6to4.lua
1 -- Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local map, section, net = ...
5
6 local ipaddr, defaultroute, metric, ttl, mtu
7
8
9 ipaddr = section:taboption("general", Value, "ipaddr",
10         translate("Local IPv4 address"),
11         translate("Leave empty to use the current WAN address"))
12
13 ipaddr.datatype = "ip4addr"
14
15 defaultroute = section:taboption("advanced", Flag, "defaultroute",
16         translate("Use default gateway"),
17         translate("If unchecked, no default route is configured"))
18
19 defaultroute.default = defaultroute.enabled
20
21
22 metric = section:taboption("advanced", Value, "metric",
23         translate("Use gateway metric"))
24
25 metric.placeholder = "0"
26 metric.datatype    = "uinteger"
27 metric:depends("defaultroute", defaultroute.enabled)
28
29
30 ttl = section:taboption("advanced", Value, "ttl", translate("Use TTL on tunnel interface"))
31 ttl.placeholder = "64"
32 ttl.datatype    = "range(1,255)"
33
34
35 mtu = section:taboption("advanced", Value, "mtu", translate("Use MTU on tunnel interface"))
36 mtu.placeholder = "1280"
37 mtu.datatype    = "max(9200)"