Commit graph

23 commits

Author SHA1 Message Date
Jo-Philipp Wich
7d49508480 protocols: fix interface.ipv6 vs. device.ipv6 option conflict
Ref: https://forum.openwrt.org/t/pppoe-disable-ipv6/92548
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-29 22:35:46 +02:00
Jo-Philipp Wich
171ef77e89 treewide: remove rendundant proto handler options
The introduction of network device configuration support also implemented
all common, protocol-independent interface options directly in the
interface config view, so drop the redundant option definitions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-03-15 11:41:44 +01:00
Jo-Philipp Wich
284918bfaf treewide: move templates and libraries not used by the core to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00
Jo-Philipp Wich
9cae3b9e67 protocols: replace luci/getTTYDevices calls with generic file/list ones
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:29:04 +02:00
Jo-Philipp Wich
06f4feca1d protocols: drop server side cbi implementations of protocol handlers
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
6a2a53a829 protocols: add client side protocol handler implementations
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-09-10 15:28:16 +02:00
Jo-Philipp Wich
b6e240d8c3
Merge pull request #2424 from LuKePicci/luci-proto-ppp_pppoe_host-uniq
luci-proto-ppp: fix wrong pppoe host_uniq datatype
2019-01-21 20:14:31 +01:00
Luca Piccirillo
d3781f7c35
luci-proto-ppp: fix wrong pppoe host_uniq datatype
Signed-off-by: Luca Piccirillo <luca.piccirillo@gmail.com>
2019-01-04 22:15:23 +01:00
Florian Eckert
24cf28b5ec luci-proto-pppossh: move pppossh to own package
This is a special proto which should go into a separate package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-30 17:49:09 +08:00
Jo-Philipp Wich
1b2065d0be luci-proto-ppp: align keepalive defaults with current OpenWrt
Disabling LCP echos by *not* setting "option keepalive" was broken in
OpenWrt since https://dev.archive.openwrt.org/ticket/2373.html so setting
"0" in LuCI had the effect of reverting back to "5, 1" while the help
suggested otherwise.

Support for "keepalive 0" was fixed with https://git.openwrt.org/555c59230
so align LuCI now to emit "option keepalive 0" instead of removing the
option when entering "0" in the gui.

Fixes #2112
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-08-30 15:33:26 +02:00
LuKePicci
265b0ebbd4 luci-proto-ppp: expose pppoe host_uniq tag setting
Signed-off-by: Luca Piccirillo <luca.piccirillo@gmail.com>
2018-07-09 17:53:08 +02:00
Florian Eckert
f6aec9fe21 luci-proto-3g: make it a self-contained package
The follow error will appear after clicking "Switch protcol" to 3g when
luci-proto-3g was not installed.  Fix this by moving the relevant parts
from luci-proto-ppp into luci-proto-3g and making it complete as a
single protocol handler

> Missing protocol extension for proto "3g"
> cannot open /usr/lib/lua/luci/model/cbi/admin_network/proto_3g.lua: No such file or directory

Closes openwrt/luci#1815

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-05-28 22:28:30 +08:00
Florian Eckert
54455719e5 luci-proto-ppp: add translation to ipv6 handling
If there is no translation set, then on material theme the dropdown
selection displaced. To fix this add an translation to this dropdown.

The commit also changes source code whitespace shifting.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-07 14:03:32 +08:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
Quirin Hofstaetter
d40bb2e60e luci-proto-ppp: add license tag
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-13 13:40:28 +02:00
Daniel Dickinson
c481f3f343 validation: Add option ipv4only option to host and hostport datatypes
Some applications only support ipv4 so add ipv4only option
to host and hostport datatypes so that for thos applications
that when an IP address is specified only and ipv4 ip address
gets accepted.
2015-12-15 20:41:01 -05:00
Yousong Zhou
09768ed745 luci-proto-ppp: l2tp: allow specifying port in "server" option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-12-02 20:56:11 +08:00
Yousong Zhou
cbf45fe563 luci-proto-ppp: add support for pppossh
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-11-03 17:07:45 +08:00
Steven Barth
f67d39e69a IPv6 updates
Signed-off-by: Steven Barth <steven@midlink.org>
2015-05-17 17:06:43 +02:00
Jo-Philipp Wich
41d2b33087 Update my email addresses in the license headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:49:44 +01:00
Jo-Philipp Wich
7a3493b1f7 Globally reduce copyright headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:38:38 +01:00
Jo-Philipp Wich
224325a36d protocols: fix keepalive settings for pppd based protocols
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-15 22:55:37 +01:00
Jo-Philipp Wich
1bb4822dca Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
 * Make each LuCI module its own standalone package
 * Deploy a shared luci.mk which is used by each module Makefile

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-08 16:26:20 +01:00