project/luci.git
9 years agoMerge pull request #347 from chris5560/master-app-ddns
Christian Schoenebeck [Fri, 20 Mar 2015 08:09:21 +0000 (09:09 +0100)]
Merge pull request #347 from chris5560/master-app-ddns

luci-app-ddns: fix errors in global.lua

9 years agoluci-app-ddns: fix errors in global.lua 347/head
Christian Schoenebeck [Fri, 20 Mar 2015 08:06:11 +0000 (09:06 +0100)]
luci-app-ddns: fix errors in global.lua

fix dispatcher and validation errors in global.lua

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-base: fix backslash escaping in luci.util.serialize_json()
Jo-Philipp Wich [Wed, 18 Mar 2015 11:43:29 +0000 (12:43 +0100)]
luci-base: fix backslash escaping in luci.util.serialize_json()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #336 from legendtang/fix
Jo-Philipp Wich [Tue, 10 Mar 2015 17:56:41 +0000 (18:56 +0100)]
Merge pull request #336 from legendtang/fix

luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182

9 years agoMerge pull request #304 from nmav/ocserv-crypt
Jo-Philipp Wich [Tue, 10 Mar 2015 17:55:46 +0000 (18:55 +0100)]
Merge pull request #304 from nmav/ocserv-crypt

luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt

9 years agoMerge pull request #333 from legendtang/master
Jo-Philipp Wich [Tue, 10 Mar 2015 17:55:15 +0000 (18:55 +0100)]
Merge pull request #333 from legendtang/master

themes/bootstrap: add media queries to bootstrap-theme for better responsive UI on mobile devices

9 years agoMerge pull request #338 from chris5560/master-app-privoxy
Jo-Philipp Wich [Tue, 10 Mar 2015 17:54:24 +0000 (18:54 +0100)]
Merge pull request #338 from chris5560/master-app-privoxy

luci-app-privoxy: cleanup and fixes for #298 #334 #335

9 years agoMerge pull request #339 from Seak/master
Jo-Philipp Wich [Tue, 10 Mar 2015 17:53:37 +0000 (18:53 +0100)]
Merge pull request #339 from Seak/master

ifaces.lua:fix generating /etc/config/dhcp section

9 years agoMerge pull request #337 from chris5560/master-app-ddns
Jo-Philipp Wich [Tue, 10 Mar 2015 17:49:10 +0000 (18:49 +0100)]
Merge pull request #337 from chris5560/master-app-ddns

luci-app-ddns: patches for #298 #334 #335

9 years agoMerge pull request #340 from hnyman/png-close-logspam
Jo-Philipp Wich [Tue, 10 Mar 2015 17:48:15 +0000 (18:48 +0100)]
Merge pull request #340 from hnyman/png-close-logspam

luci-statistics: fix uhttpd log spam from extra png close

9 years agoMerge pull request #344 from melle/fix-dns-community-potsdam
Manuel Munz [Wed, 4 Mar 2015 23:54:21 +0000 (00:54 +0100)]
Merge pull request #344 from melle/fix-dns-community-potsdam

Fixed default DNS settings for community Potsdam

9 years agoFixed default DNS settings for community Potsdam 344/head
Thomas Mellenthin [Wed, 4 Mar 2015 19:45:27 +0000 (20:45 +0100)]
Fixed default DNS settings for community Potsdam

9 years agoluci-statistics: fix uhttpd log spam from extra png close 340/head
Hannu Nyman [Mon, 2 Mar 2015 17:04:16 +0000 (19:04 +0200)]
luci-statistics: fix uhttpd log spam from extra png close

Fix log spam that uhttpd logging change has brought to surface.

Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute call dispatcher target for entry '/admin/statistics/graph/conntrack'.
Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: The called action terminated with an exception:
Sun Mar  1 11:10:42 2015 daemon.err uhttpd[2293]: .../luci/controller/luci_statistics/luci_statistics.lua:153: attempt to use a closed file

Closing the png file explicitly on line 153 is unnecessary, as
ltn12's source.file method already closes the file after use.
https://github.com/openwrt/luci/blob/master/modules/luci-base/luasrc/ltn12.lua#L119

More info at https://dev.openwrt.org/ticket/19083#comment:2

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 years ago/etc/config/dhcp 339/head
江海客 [Mon, 2 Mar 2015 07:14:24 +0000 (15:14 +0800)]
/etc/config/dhcp

config dhcp null

9 years agoluci-app-privoxy: cleanup and fixes for #298 #334 #335 338/head
Christian Schoenebeck [Sun, 1 Mar 2015 19:37:00 +0000 (20:37 +0100)]
luci-app-privoxy: cleanup and fixes for #298 #334 #335

* remove extra apperror.lua page
* so no nore need for extra directory inside model/cbi
* add option temporary_directory needed for external filters
* remove special handling of bootstrap theme #298 #334
* modified version handling suggested in #335

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-app-ddns: patches for #298 #334 #335 337/head
Christian Schoenebeck [Sun, 1 Mar 2015 19:08:45 +0000 (20:08 +0100)]
luci-app-ddns: patches for #298 #334 #335

* remove usage of opkg via system call for version handling
thanks to Jo-Philipp Wich #335
* remove special handling of bootstrap theme #298 #334

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 336/head
Legend Tang [Sat, 28 Feb 2015 19:03:08 +0000 (03:03 +0800)]
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182

9 years agoMerge pull request #334 from legendtang/fix
Jo-Philipp Wich [Sat, 28 Feb 2015 18:16:54 +0000 (19:16 +0100)]
Merge pull request #334 from legendtang/fix

theme/bootstrap: add a mssing class style in form section (#298)

9 years agoluci-app-upnp: supress stderr when listing MINIUPNPD chain
Jo-Philipp Wich [Sat, 28 Feb 2015 18:05:42 +0000 (19:05 +0100)]
luci-app-upnp: supress stderr when listing MINIUPNPD chain

Current OpenWrt trunk now relays uhttpd stderr to syslog, so don't spam
it with "iptables: No chain/target/match by that name." when miniupnpd
is not configured but its status is queried by an overview page applet.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agotheme/bootstrap: add a mssing class style in form section (#298) 334/head
Legend Tang [Sat, 28 Feb 2015 17:20:33 +0000 (01:20 +0800)]
theme/bootstrap: add a mssing class style in form section (#298)

NOTE: three <br /> in some luci-app's cbi-tab-descr section which help
to workaround must be removed.

9 years agoadd media queries for better responsive UI on mobile devices 333/head
Legend Tang [Sat, 28 Feb 2015 15:08:26 +0000 (23:08 +0800)]
add media queries for better responsive UI on mobile devices

This is for modern browsers only

9 years agoMerge pull request #325 from chris5560/master-app-ddns
Jo-Philipp Wich [Sat, 28 Feb 2015 12:25:57 +0000 (13:25 +0100)]
Merge pull request #325 from chris5560/master-app-ddns

luci-app-ddns: update to version 2.2.0-1

9 years agocontrib/community-profiles/demo: remove openwifimap
Manuel Munz [Wed, 25 Feb 2015 19:11:31 +0000 (20:11 +0100)]
contrib/community-profiles/demo: remove openwifimap

9 years agocontrib/community-profiles/augsburg: remove openwifimap
Manuel Munz [Wed, 25 Feb 2015 19:09:47 +0000 (20:09 +0100)]
contrib/community-profiles/augsburg: remove openwifimap

9 years agocontrib/meshwizard: add madwifi iface options if needed
soma [Wed, 25 Feb 2015 19:00:33 +0000 (20:00 +0100)]
contrib/meshwizard: add madwifi iface options if needed

9 years agocontrib/freifunk-common: fix wifi device and iface settings: mcast_rate set to 6000...
soma [Wed, 25 Feb 2015 18:59:26 +0000 (19:59 +0100)]
contrib/freifunk-common: fix wifi device and iface settings: mcast_rate set to 6000, remove hwmode, remove madwifi only options. introduce a new section to set madwifi iface options

9 years agoMerge pull request #328 from chris5560/master-pending-1
Manuel Munz [Fri, 20 Feb 2015 13:28:11 +0000 (14:28 +0100)]
Merge pull request #328 from chris5560/master-pending-1

wifi.lua: add "Back to Overview" button

9 years agoapplications/luci-splash: fix fac02283137f6ff59363695bb07a3f9cec58e577 | ipt module...
Manuel Munz [Fri, 20 Feb 2015 13:20:55 +0000 (14:20 +0100)]
applications/luci-splash: fix fac02283137f6ff59363695bb07a3f9cec58e577 | ipt module was missing and the new functions didn't return anything

9 years agoapplications/olsr-services: fix error on public services page
Manuel Munz [Thu, 19 Feb 2015 19:33:26 +0000 (20:33 +0100)]
applications/olsr-services: fix error on public services page

9 years agothemes/freifunk-generic: fix error with version string display in header on BB
Manuel Munz [Thu, 19 Feb 2015 19:20:31 +0000 (20:20 +0100)]
themes/freifunk-generic: fix error with version string display in header on BB

9 years agoMerge pull request #330 from Maltis/patch-1
Manuel Munz [Wed, 18 Feb 2015 23:08:04 +0000 (00:08 +0100)]
Merge pull request #330 from Maltis/patch-1

Delete profile_neuss

9 years agoDelete profile_neuss 330/head
Maltis [Wed, 18 Feb 2015 22:40:19 +0000 (23:40 +0100)]
Delete profile_neuss

9 years agoMerge pull request #329 from yayachiken/master
Manuel Munz [Wed, 18 Feb 2015 21:58:32 +0000 (22:58 +0100)]
Merge pull request #329 from yayachiken/master

Removed outdated information for Freifunk Aachen

9 years agoRemoved outdated information for Freifunk Aachen 329/head
David Kolossa [Wed, 18 Feb 2015 21:45:25 +0000 (22:45 +0100)]
Removed outdated information for Freifunk Aachen

- Freifunk Aachen now uses Gluon
- In addition, the old IP space has already been reallocated for other
  communities, so the information here is definitely outdated.

Signed-off-by: David Kolossa <david.kolossa@posteo.de>
9 years agowifi.lua: add "Back to Overview" button 328/head
Christian Schoenebeck [Sat, 14 Feb 2015 10:27:57 +0000 (11:27 +0100)]
wifi.lua: add "Back to Overview" button

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoluci-app-ddns: update to version 2.2.0-1 325/head
Christian Schoenebeck [Tue, 10 Feb 2015 20:49:57 +0000 (21:49 +0100)]
luci-app-ddns: update to version 2.2.0-1

- implement new option bind_interface
- fixes problems when updating status displays (i.e. showing Software update needed)
- new links to OpenWrt wiki
- new screen to set global settings
- implements global option use_curl

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoMerge pull request #323 from jmccrohan/master
Manuel Munz [Tue, 10 Feb 2015 07:45:18 +0000 (08:45 +0100)]
Merge pull request #323 from jmccrohan/master

luci-app-asterisk: fix typo in package description

9 years agoAvoid setting duplicate cookies
Jo-Philipp Wich [Mon, 9 Feb 2015 15:30:11 +0000 (16:30 +0100)]
Avoid setting duplicate cookies

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: pass session timeout as integer
Jo-Philipp Wich [Mon, 9 Feb 2015 12:03:44 +0000 (13:03 +0100)]
luci-base: pass session timeout as integer

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-freifunk: fix public status page
Jo-Philipp Wich [Mon, 9 Feb 2015 11:15:06 +0000 (12:15 +0100)]
luci-mod-freifunk: fix public status page

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: establish ubus connection before dropping privileges (#310)
Jo-Philipp Wich [Mon, 9 Feb 2015 11:14:20 +0000 (12:14 +0100)]
luci-base: establish ubus connection before dropping privileges (#310)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-asterisk: fix typo in package description 323/head
Jonathan McCrohan [Mon, 9 Feb 2015 00:38:38 +0000 (00:38 +0000)]
luci-app-asterisk: fix typo in package description

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
9 years agoMerge pull request #302 from chris5560/master
Jo-Philipp Wich [Sun, 8 Feb 2015 18:57:20 +0000 (19:57 +0100)]
Merge pull request #302 from chris5560/master

luci-themes: luci.main.mediaurlbase not set correctly

9 years agoMerge pull request #320 from chris5560/master
Jo-Philipp Wich [Sun, 8 Feb 2015 18:22:45 +0000 (19:22 +0100)]
Merge pull request #320 from chris5560/master

admin_network: interface details, implement "Back to Overview" button

9 years agoMerge pull request #315 from poranje/proto-ipv6+aiccu
Jo-Philipp Wich [Sun, 8 Feb 2015 18:18:16 +0000 (19:18 +0100)]
Merge pull request #315 from poranje/proto-ipv6+aiccu

luci-proto-ipv6: add aiccu

9 years agoadmin_network: interface details, implement back to overview 320/head
Christian Schoenebeck [Sun, 8 Feb 2015 18:17:09 +0000 (19:17 +0100)]
admin_network: interface details, implement back to overview

Implements "Back to Overview" on interface details page

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
9 years agoMerge pull request #305 from nmav/compression
Jo-Philipp Wich [Sun, 8 Feb 2015 18:13:39 +0000 (19:13 +0100)]
Merge pull request #305 from nmav/compression

luci-app-ocserv: Added option to enable compression

9 years agoMerge pull request #319 from nmav/oc-iface
Jo-Philipp Wich [Sun, 8 Feb 2015 18:13:12 +0000 (19:13 +0100)]
Merge pull request #319 from nmav/oc-iface

openconnect: ask for the output interface name

9 years agoopenconnect: ask for the output interface name 319/head
Nikos Mavrogiannopoulos [Sun, 8 Feb 2015 17:46:48 +0000 (18:46 +0100)]
openconnect: ask for the output interface name

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
9 years agoluci-proto-ipv6: aiccu fixed ip6prefix datatype 315/head
Paul Oranje [Fri, 6 Feb 2015 18:39:56 +0000 (19:39 +0100)]
luci-proto-ipv6: aiccu fixed ip6prefix datatype

9 years agoluci-proto-ipv6: aiccu improvements
Paul Oranje [Fri, 6 Feb 2015 11:04:58 +0000 (12:04 +0100)]
luci-proto-ipv6: aiccu improvements

- option heartbeat as tunnel type (heartbeat or AYIYA) (inspired by
idea of openwrt forum user thefRont)
- another typo fix in the mtu option

9 years agoMerge pull request #317 from hnyman/fix-zoneinfo2lua
Jo-Philipp Wich [Fri, 6 Feb 2015 10:02:58 +0000 (11:02 +0100)]
Merge pull request #317 from hnyman/fix-zoneinfo2lua

zoneinfo2lua.pl to generate shorter copyright messages

9 years agoMerge pull request #316 from hnyman/timezone-2015a
Jo-Philipp Wich [Fri, 6 Feb 2015 10:02:40 +0000 (11:02 +0100)]
Merge pull request #316 from hnyman/timezone-2015a

Timezone data: Update to 2015a

9 years agozoneinfo2lua.pl to generate shorter copyright messages 317/head
Hannu Nyman [Wed, 4 Feb 2015 17:11:41 +0000 (19:11 +0200)]
zoneinfo2lua.pl to generate shorter copyright messages

Change zoneinfo2lua.pl to generate the short copyright messages
that have been there since https://github.com/openwrt/luci/commit/7a3493b1f7d75a3945279115324cf2ff4da26b7b

Also change the advice on line 3 about directory, where this script
should be run.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 years agoluci-proto-ipv6: fix typo in aiccu mtu range
Paul Oranje [Wed, 4 Feb 2015 16:51:25 +0000 (17:51 +0100)]
luci-proto-ipv6: fix typo in aiccu mtu range

9 years agoTimezone data: Update to 2015a 316/head
Hannu Nyman [Wed, 4 Feb 2015 16:50:36 +0000 (18:50 +0200)]
Timezone data: Update to 2015a

Timezone information is updated to 2015a, released on 30 Jan 15.

I used build/zoneinfo2lua.pl to pull data from my Ubuntu 14.10.

Changes are rather small:
http://mm.icann.org/pipermail/tz-announce/2015-January/000028.html

The Mexican state of Quintana Roo, represented by America/Cancun,
will shift from Central Time with DST to Eastern Time without DST.

Chile will not change clocks in April or thereafter; its new
standard time will be its old daylight saving time.
This affects America/Santiago, Pacific/Easter, and Antarctica/Palmer.

Ps. I manually edited headers to have the shorter new copyright,
instead of the long one generated buy the script.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 years agoluci-proto-ipv6: set aiccu mtu option range
Paul Oranje [Wed, 4 Feb 2015 11:12:59 +0000 (12:12 +0100)]
luci-proto-ipv6: set aiccu mtu option range

9 years agoluci-proto-ipv6: add aiccu
Paul Oranje [Tue, 3 Feb 2015 23:04:04 +0000 (00:04 +0100)]
luci-proto-ipv6: add aiccu

initial commit

9 years agoMove inline documentation into separate files.
Jo-Philipp Wich [Thu, 29 Jan 2015 15:26:15 +0000 (16:26 +0100)]
Move inline documentation into separate files.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-jsonc: add api documentation
Jo-Philipp Wich [Wed, 28 Jan 2015 21:31:28 +0000 (22:31 +0100)]
luci-lib-jsonc: add api documentation

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: add api documentation
Jo-Philipp Wich [Wed, 28 Jan 2015 21:31:14 +0000 (22:31 +0100)]
luci-lib-ip: add api documentation

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-nixio: move CHANGELOG and README into nixio namespace
Jo-Philipp Wich [Wed, 28 Jan 2015 21:29:45 +0000 (22:29 +0100)]
luci-lib-nixio: move CHANGELOG and README into nixio namespace

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agobuild: remove *.luadoc files before packaging
Jo-Philipp Wich [Wed, 28 Jan 2015 21:29:03 +0000 (22:29 +0100)]
build: remove *.luadoc files before packaging

9 years agoRemove outdated luadoc from contrib
Jo-Philipp Wich [Wed, 28 Jan 2015 21:28:29 +0000 (22:28 +0100)]
Remove outdated luadoc from contrib

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agobuild: add modified luadoc for use with LuCI sources
Jo-Philipp Wich [Wed, 28 Jan 2015 21:27:46 +0000 (22:27 +0100)]
build: add modified luadoc for use with LuCI sources

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: add functions to deal with IPv6 mapped IPv6
Jo-Philipp Wich [Wed, 28 Jan 2015 13:21:01 +0000 (14:21 +0100)]
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>
9 years agoluci-lib-ip: multiple fixes
Jo-Philipp Wich [Wed, 28 Jan 2015 12:23:24 +0000 (13:23 +0100)]
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>
9 years agoluci-app-firewall: rework internal/external zone list handling when adding forwards
Jo-Philipp Wich [Mon, 26 Jan 2015 16:55:09 +0000 (17:55 +0100)]
luci-app-firewall: rework internal/external zone list handling when adding forwards

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: improve login/logout handling
Jo-Philipp Wich [Mon, 26 Jan 2015 16:31:21 +0000 (17:31 +0100)]
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>
9 years agolibs: add luci-lib-jsonc, a Lua binding for JSON-C
Jo-Philipp Wich [Mon, 26 Jan 2015 15:49:23 +0000 (16:49 +0100)]
libs: add luci-lib-jsonc, a Lua binding for JSON-C

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: accept 2nd netmask argument in new(), IPv4() and IPv6()
Jo-Philipp Wich [Mon, 26 Jan 2015 09:47:39 +0000 (10:47 +0100)]
luci-lib-ip: accept 2nd netmask argument in new(), IPv4() and IPv6()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix segfault in link() on systems with ip6gre support
Jo-Philipp Wich [Sun, 25 Jan 2015 20:39:17 +0000 (21:39 +0100)]
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>
9 years agoluci-app-privoxy: fix path to luci.mk after move
Jo-Philipp Wich [Sun, 25 Jan 2015 17:30:07 +0000 (18:30 +0100)]
luci-app-privoxy: fix path to luci.mk after move

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #308 from chris5560/master
Jo-Philipp Wich [Sun, 25 Jan 2015 11:36:50 +0000 (12:36 +0100)]
Merge pull request #308 from chris5560/master

luci-app-privoxy: move from openwrt/packages to openwrt/luci

9 years agoluci-mod-admin-full: use sysupgrade -T to test images
Jo-Philipp Wich [Sat, 24 Jan 2015 13:26:51 +0000 (14:26 +0100)]
luci-mod-admin-full: use sysupgrade -T to test images

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix netlink receiving in link()
Jo-Philipp Wich [Sat, 24 Jan 2015 13:25:53 +0000 (14:25 +0100)]
luci-lib-ip: fix netlink receiving in link()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-privoxy: move from openwrt/packages to openwrt/luci 308/head
Christian Schoenebeck [Sat, 24 Jan 2015 09:38:54 +0000 (10:38 +0100)]
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>
9 years agoluci-base: optimize luci.tools.webadmin.iface_get_network()
Jo-Philipp Wich [Fri, 23 Jan 2015 14:26:33 +0000 (15:26 +0100)]
luci-base: optimize luci.tools.webadmin.iface_get_network()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: add link() method to get basic iface info
Jo-Philipp Wich [Fri, 23 Jan 2015 12:00:51 +0000 (13:00 +0100)]
luci-lib-ip: add link() method to get basic iface info

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: always return table for dump, even if empty
Jo-Philipp Wich [Thu, 22 Jan 2015 22:58:42 +0000 (23:58 +0100)]
luci-lib-ip: always return table for dump, even if empty

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: remove unused functions from luci.sys.net
Jo-Philipp Wich [Thu, 22 Jan 2015 22:55:11 +0000 (23:55 +0100)]
luci-base: remove unused functions from luci.sys.net

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: support filtering neighbors by mac or dest addr
Jo-Philipp Wich [Thu, 22 Jan 2015 22:43:56 +0000 (23:43 +0100)]
luci-lib-ip: support filtering neighbors by mac or dest addr

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-splash: convert ip4mac() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 21:07:50 +0000 (22:07 +0100)]
luci-app-splash: convert ip4mac() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-splash: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 20:52:04 +0000 (21:52 +0100)]
luci-app-splash: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-mini: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 17:50:00 +0000 (18:50 +0100)]
luci-mod-admin-mini: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: convert luci.sys.net.arptable() to luci.ip.neighbors()
Jo-Philipp Wich [Thu, 22 Jan 2015 17:45:28 +0000 (18:45 +0100)]
luci-mod-admin-full: convert luci.sys.net.arptable() to luci.ip.neighbors()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: rewrite luci.tools.webadmin and remove unused functions
Jo-Philipp Wich [Thu, 22 Jan 2015 17:25:49 +0000 (18:25 +0100)]
luci-base: rewrite luci.tools.webadmin and remove unused functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: rewrite mac address resolving
Jo-Philipp Wich [Thu, 22 Jan 2015 16:52:44 +0000 (17:52 +0100)]
luci-app-olsr: rewrite mac address resolving

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-freifunk: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:44:01 +0000 (16:44 +0100)]
luci-mod-freifunk: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-coovachilli: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:36:18 +0000 (16:36 +0100)]
luci-app-coovachilli: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-siitwizard: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 15:29:35 +0000 (16:29 +0100)]
luci-app-siitwizard: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-mod-admin-full: switch to luci.ip route functions
Jo-Philipp Wich [Thu, 22 Jan 2015 14:53:16 +0000 (15:53 +0100)]
luci-mod-admin-full: switch to luci.ip route functions

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-ip: fix routes() for non-callback invocations
Jo-Philipp Wich [Thu, 22 Jan 2015 14:25:41 +0000 (15:25 +0100)]
luci-lib-ip: fix routes() for non-callback invocations

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-app-olsr: use luci.ip.routes() to find default gw
Jo-Philipp Wich [Thu, 22 Jan 2015 14:12:56 +0000 (15:12 +0100)]
luci-app-olsr: use luci.ip.routes() to find default gw

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: depend on luci-lib-ip and remove ip.lua
Jo-Philipp Wich [Thu, 22 Jan 2015 14:08:09 +0000 (15:08 +0100)]
luci-base: depend on luci-lib-ip and remove ip.lua

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-lib-nixio: always assume Linux target (#307)
Jo-Philipp Wich [Thu, 22 Jan 2015 14:01:39 +0000 (15:01 +0100)]
luci-lib-nixio: always assume Linux target (#307)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agolibs: add luci-lib-ip
Jo-Philipp Wich [Thu, 22 Jan 2015 13:59:13 +0000 (14:59 +0100)]
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>
9 years agoluci-base: use serialize_json() in luci.http
Jo-Philipp Wich [Sun, 18 Jan 2015 18:01:04 +0000 (19:01 +0100)]
luci-base: use serialize_json() in luci.http

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoluci-base: add luci.util.serialize_json()
Jo-Philipp Wich [Sun, 18 Jan 2015 18:00:38 +0000 (19:00 +0100)]
luci-base: add luci.util.serialize_json()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoMerge pull request #306 from Preffer/master
Jo-Philipp Wich [Thu, 22 Jan 2015 11:06:05 +0000 (12:06 +0100)]
Merge pull request #306 from Preffer/master

libs/luci-lib-httpclient: fix not straightforward behavior of httpclient