diff --git a/files/app/main/app.ut b/files/app/main/app.ut index e7d2f017..a347a9b7 100755 --- a/files/app/main/app.ut +++ b/files/app/main/app.ut @@ -148,7 +148,7 @@ if (d) { setTimeout(function() { let invalid = false; - const f = document.querySelectorAll(m, "form"); + const f = m.querySelectorAll("form"); for (let i = 0; i < f.length; i++) { if (!f[i].checkValidity()) { invalid = true; diff --git a/files/app/main/status/e/dhcp.ut b/files/app/main/status/e/dhcp.ut index 67599791..de9eb416 100755 --- a/files/app/main/status/e/dhcp.ut +++ b/files/app/main/status/e/dhcp.ut @@ -161,67 +161,67 @@ if (f) { f.close(); } const dhcpOptionTypes = { - "1": "netmask", - "2": "time-offset", - "3": "router", - "6": "dns-server", - "7": "log-server", - "9": "lpr-server", - "13": "boot-file-size", - "15": "domain-name", - "16": "swap-server", - "17": "root-path", - "18": "extension-path", - "19": "ip-forward-enable", - "20": "non-local-source-routing", - "21": "policy-filter", - "22": "max-datagram-reassembly", - "23": "default-ttl", - "26": "mtu", - "27": "all-subnets-local", - "31": "router-discovery", - "32": "router-solicitation", - "33": "static-route", - "34": "trailer-encapsulation", - "35": "arp-timeout", - "36": "ethernet-encap", - "37": "tcp-ttl", - "38": "tcp-keepalive", - "40": "nis-domain", - "41": "nis-server", - "42": "ntp-server", - "44": "netbios-ns", - "45": "netbios-dd", - "46": "netbios-nodetype", - "47": "netbios-scope", - "48": "x-windows-fs", - "49": "x-windows-dm", - "58": "T1", - "59": "T2", - "60": "vendor-class", - "64": "nis+-domain", - "65": "nis+-server", - "66": "tftp-server", - "67": "bootfile-name", - "68": "mobile-ip-home", - "69": "smtp-server", - "70": "pop3-server", - "71": "nntp-server", - "74": "irc-server", - "77": "user-class", - "80": "rapid-commit", - "93": "client-arch", - "94": "client-interface-id", - "97": "client-machine-id", - "100": "posix-timezone", - "101": "tzdb-timezone", - "108": "ipv6-only", - "119": "domain-search", - "120": "sip-server", - "121": "classless-static-route", - "125": "vendor-id-encap", - "150": "tftp-server-address", - "255": "server-ip-address" + "1": ["netmask", "mask"], + "2": ["time-offset", "int32"], + "3": ["router", "ip"], + "6": ["dns-server", "ips"], + "7": ["log-server", "ip"], + "9": ["lpr-server", "ip"], + "13": ["boot-file-size", "1...65535"], + "15": ["domain-name", "text"], + "16": ["swap-server", "ip"], + "17": ["root-path", "text"], + "18": ["extension-path", "text"], + "19": ["ip-forward-enable", "flag"], + "20": ["non-local-source-routing", "flag"], + "21": ["policy-filter", "ipips"], + "22": ["max-datagram-reassembly", "(57[6-9]|5[89]\\d|[6-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5])", "576...65535"], + "23": ["default-ttl", "1...255"], + "26": ["mtu", "(6[89]|[7-9]\\d|[1-9]\\d{2,3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5])"], + "27": ["all-subnets-local", "flag"], + "31": ["router-discovery", "flag"], + "32": ["router-solicitation", "ip"], + "33": ["static-route", "ipips"], + "34": ["trailer-encapsulation", "flag"], + "35": ["arp-timeout", "uint32"], + "36": ["ethernet-encap", "flag"], + "37": ["tcp-ttl", "1...255"], + "38": ["tcp-keepalive", "uint32"], + "40": ["nis-domain", "text"], + "41": ["nis-server", "ip"], + "42": ["ntp-server", "ip"], + "44": ["netbios-ns", "ip"], + "45": ["netbios-dd", "ip"], + "46": ["netbios-nodetype", "1|2|4|8", "1, 2, 4 or 8"], + "47": ["netbios-scope", "?"], + "48": ["x-windows-fs", "ip"], + "49": ["x-windows-dm", "ip"], + "58": ["T1", "time"], + "59": ["T2", "time"], + "60": ["vendor-class", "text"], + "64": ["nis+-domain", "text"], + "65": ["nis+-server", "ip"], + "66": ["tftp-server", "ip"], + "67": ["bootfile-name", "text"], + "68": ["mobile-ip-home", "ip"], + "69": ["smtp-server", "ip"], + "70": ["pop3-server", "ip"], + "71": ["nntp-server", "ip"], + "74": ["irc-server", "ip"], + "77": ["user-class", "text"], + "80": ["rapid-commit", "flag"], + "93": ["client-arch", "uint16"], + "94": ["client-interface-id", "?"], + "97": ["client-machine-id", "?"], + "100": ["posix-timezone", "?"], + "101": ["tzdb-timezone", "?"], + "108": ["ipv6-only", "?"], + "119": ["domain-search", "text"], + "120": ["sip-server", "ip"], + "121": ["classless-static-route", "((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\\.?\\b){4}/([1-9]|[12]\\d|3[0-2]),((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\\.?\\b){4}(,((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\\.?\\b){4}/([1-9]|[12]\\d|3[0-2]),((25[0-5]|(2[0-4]|1[0-9]|[1-9]|)[0-9])\\.?\\b){4})*", "IP Address/CIDR,IP Address..."], + "125": ["vendor-id-encap", "?"], + "150": ["tftp-server-address", "ip"], + "255": ["server-ip-address", "ip"] }; %}