Jo-Philipp Wich
84346cd178
Move inline documentation into separate files.
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-29 16:26:46 +01:00
Jo-Philipp Wich
cf7e2695cc
luci-lib-jsonc: add api documentation
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:31:28 +01:00
Jo-Philipp Wich
7ca5222f4b
luci-lib-ip: add api documentation
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:31:14 +01:00
Jo-Philipp Wich
fb69e15e8d
luci-lib-nixio: move CHANGELOG and README into nixio namespace
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:29:45 +01:00
Jo-Philipp Wich
d1c1423eba
build: remove *.luadoc files before packaging
2015-01-28 22:29:03 +01:00
Jo-Philipp Wich
8464b98bb4
Remove outdated luadoc from contrib
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:28:29 +01:00
Jo-Philipp Wich
c669c01cea
build: add modified luadoc for use with LuCI sources
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:28:04 +01:00
Jo-Philipp Wich
e6e74b712f
luci-lib-ip: add functions to deal with IPv6 mapped IPv6
...
* Add luci.ip.cidr.is6mapped4() to test whether an IPv6 CIDR is a mapped IPv4 one
* Add luci.ip.cidr.mapped4() to derive IPv4 from mapped CIDR
* Remove mapped IPv4 workaround from constructor as it breaks genuine addrs like ::ffff:0
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 14:21:04 +01:00
Jo-Philipp Wich
65f0135491
luci-lib-ip: multiple fixes
...
* Fix broken neighbor filtering by address range due to uninitialized memory
* Fix wrong sizeof in _cidr_add_sub when adding/substracing IPv6 addresses
* Properly convert numeric values to IPv6 addresses
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 13:23:24 +01:00
Jo-Philipp Wich
44a62295f9
luci-app-firewall: rework internal/external zone list handling when adding forwards
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-26 17:55:09 +01:00
Jo-Philipp Wich
83d520ab07
luci-base: improve login/logout handling
...
Redirect to the canonical url after login and redirect to an url without
security token if the session expired. Also make sure that the login page
is served with status code 403, not 200 to give ajax calls a chance to
detect expired sessions.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-26 17:31:21 +01:00
Jo-Philipp Wich
73b19f6382
libs: add luci-lib-jsonc, a Lua binding for JSON-C
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-26 16:49:23 +01:00
Jo-Philipp Wich
8c8c69fa5d
luci-lib-ip: accept 2nd netmask argument in new(), IPv4() and IPv6()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-26 10:47:39 +01:00
Jo-Philipp Wich
0d32e69f16
luci-lib-ip: fix segfault in link() on systems with ip6gre support
...
If an ip6gre interface is queried, the resulting link local address string
of 47 byte overflowed the buffer of 32 bytes used to hold the translated
address.
Increase the address string buffer to 48 byte and check the address length
prior to writing it into the buffer to avoid future problems with longs
link local addresses.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-25 21:39:17 +01:00
Jo-Philipp Wich
5317b09be7
luci-app-privoxy: fix path to luci.mk after move
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-25 18:30:07 +01:00
Jo-Philipp Wich
c69bbad727
Merge pull request #308 from chris5560/master
...
luci-app-privoxy: move from openwrt/packages to openwrt/luci
2015-01-25 12:36:50 +01:00
Jo-Philipp Wich
9feb1b8a78
luci-mod-admin-full: use sysupgrade -T to test images
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-24 14:26:51 +01:00
Jo-Philipp Wich
eb1ef783f6
luci-lib-ip: fix netlink receiving in link()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-24 14:25:53 +01:00
Christian Schoenebeck
29f7cf16e5
luci-app-privoxy: move from openwrt/packages to openwrt/luci
...
* move from openwrt/packages to openwrt/luci
* adaption to new LuCI subdirectory structure
* fix error handling
* modified version handling
* fixed translations
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-24 10:38:54 +01:00
Jo-Philipp Wich
40066a6799
luci-base: optimize luci.tools.webadmin.iface_get_network()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-23 15:26:33 +01:00
Jo-Philipp Wich
671566d701
luci-lib-ip: add link() method to get basic iface info
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-23 13:00:51 +01:00
Jo-Philipp Wich
4ab9f972c4
luci-lib-ip: always return table for dump, even if empty
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 23:59:11 +01:00
Jo-Philipp Wich
6c16f97c4c
luci-base: remove unused functions from luci.sys.net
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 23:55:11 +01:00
Jo-Philipp Wich
e85698638f
luci-lib-ip: support filtering neighbors by mac or dest addr
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 23:43:56 +01:00
Jo-Philipp Wich
1d461b6e7e
luci-app-splash: convert ip4mac() to luci.ip.neighbors()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 22:07:50 +01:00
Jo-Philipp Wich
fac0228313
luci-app-splash: convert luci.sys.net.arptable() to luci.ip.neighbors()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 21:57:00 +01:00
Jo-Philipp Wich
b24dfd52ac
luci-mod-admin-mini: convert luci.sys.net.arptable() to luci.ip.neighbors()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 18:50:00 +01:00
Jo-Philipp Wich
213595ce85
luci-mod-admin-full: convert luci.sys.net.arptable() to luci.ip.neighbors()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 18:45:28 +01:00
Jo-Philipp Wich
577b772824
luci-base: rewrite luci.tools.webadmin and remove unused functions
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 18:25:49 +01:00
Jo-Philipp Wich
44ee102ff9
luci-app-olsr: rewrite mac address resolving
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 17:52:44 +01:00
Jo-Philipp Wich
7dc9f86749
luci-mod-freifunk: switch to luci.ip route functions
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 16:44:01 +01:00
Jo-Philipp Wich
625a89a370
luci-app-coovachilli: switch to luci.ip route functions
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 16:36:18 +01:00
Jo-Philipp Wich
feb576413b
luci-app-siitwizard: switch to luci.ip route functions
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 16:29:35 +01:00
Jo-Philipp Wich
5b94c1cca2
luci-mod-admin-full: switch to luci.ip route functions
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:53:16 +01:00
Jo-Philipp Wich
e9bfa5fe79
luci-lib-ip: fix routes() for non-callback invocations
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:25:41 +01:00
Jo-Philipp Wich
b48386be67
luci-app-olsr: use luci.ip.routes() to find default gw
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:12:56 +01:00
Jo-Philipp Wich
0e90bf98df
luci-base: depend on luci-lib-ip and remove ip.lua
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:08:09 +01:00
Jo-Philipp Wich
8cf1b1374d
luci-lib-nixio: always assume Linux target ( #307 )
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:01:50 +01:00
Jo-Philipp Wich
0ff02e3a13
libs: add luci-lib-ip
...
Add new luci.ip library which is an api compatible C reimplementation
of ip.lua. It also supports dumping the system routing table and neighbour
entry database via netlink.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:01:50 +01:00
Jo-Philipp Wich
390c4bd5a7
luci-base: use serialize_json() in luci.http
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:01:50 +01:00
Jo-Philipp Wich
61a9a58efc
luci-base: add luci.util.serialize_json()
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-22 15:01:50 +01:00
Jo-Philipp Wich
4b2d2e3603
Merge pull request #306 from Preffer/master
...
libs/luci-lib-httpclient: fix not straightforward behavior of httpclient
2015-01-22 12:06:05 +01:00
Yuzo
3dbdff7096
add params support in options
2015-01-22 13:12:48 +08:00
Yuzo
b6d4f32dcc
send Cookie in a single header line, follow browser behavior
2015-01-22 12:50:58 +08:00
Yuzo
c30cf9abd4
add sock::readall() to ensure the response body is complete
2015-01-22 11:34:00 +08:00
Nikos Mavrogiannopoulos
d0759af923
luci-app-ocserv: Added option to enable compression
2015-01-20 22:21:20 +01:00
Nikos Mavrogiannopoulos
7a792ee564
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-01-20 22:19:11 +01:00
Christian Schoenebeck
55ab4e4ce2
luci-themes: luci.main.mediaurlbase not set correctly
...
Currently by default theme Bootstrap is installed but
luci.main.mediaurlbase (it holds the current active theme) still has
openwrt.org set.
I did not find the mechanism how LuCI starts Bootstrap theme but the
installation should set luci.main.mediaurlbase correctly.
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-19 21:08:03 +01:00
Jo-Philipp Wich
0d541a4cbd
Merge pull request #299 from nmav/ocserv-match
...
luci-app-ocserv: modified match to apply to newer versions of occtl
2015-01-19 18:39:10 +01:00
Jo-Philipp Wich
c96d986645
Merge pull request #301 from nmav/ocserv4
...
luci-app-ocserv: express PKID in a way that is acceptable by openconnect
2015-01-19 18:38:51 +01:00