Age | Commit message (Collapse) | Author |
|
This fixes compilation under GCC10.
There's no reason for this to be in a C file anyway.
Also fixed a -Wmissing-prototypes warning with nixio__addr_prefix.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
luci-lib-nixio: allow building with Lua5.2/LuaJIT
|
|
Life changes, I'm no longer avaiable to be an sufficiently active
OpenWrt developer. Therefore removing myself from maintainer from
all packages I maintained in OpenWrt.
All the best for those who keep up the good work!
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
|
|
Fixes: #3707
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Lua 5.1 defines a "luaL_Reg" alias for deprecated
"luaL_reg", but Lua >= 5.2 and LuaJIT do not.
Replace by "luaL_Reg", and define a "luaL_reg"
alias in case we build with old Lua 5.0.
Signed-off-by: Manuel BACHMANN <tarnyko@tarnyko.net>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3609
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Explicitly initialize the address scope value to zero in parse_cidr() and
L_setaddr() to avoid stray scope identifiers getting added when formatting
the address object as string.
Fixes: 1d2b4c777 ("luci-lib-ip: support scoped IPv6 addresses")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
|
|
Ref: https://github.com/openwrt/luci/issues/3380
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Ref: https://github.com/openwrt/luci/issues/3380
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Ref: https://forum.openwrt.org/t/luci-not-showing-2nd-ipv6-address/48271
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #3293
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Properly handle infinite dnsmasq leases
- Use a more efficient approach to free internal AVL trees
- Remove redundant uci context creation
- Add new getDUIDHints method
Fixes: #3277
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
For DHCPv6, the second entry of a lease is the IAID. The parsing code
expects a MAC instead of a IAID.
Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Checking the return value of uci_lookup_ptr() is not enough to ensure that
the requested optiomn has actually been found.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Also fix package description.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Add rpcd-mod-luci, a fast rpcd C plugin for speeding up common backend
ubus operations.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: #2921
Fixes: f3f42ff09 ("address: Replace ualarm with setitimer")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
ualarm has been deprecated and may not be available in the libc.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
Radicale 2.x has been out for some time, and has better support for a
number of clients as well as new features, so radicale2 package has
been added to packages, and this is the corresponding UI.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
|
|
Also increase the stack size as needed to prevent crashes when serializing
deeply nested tables.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes: a54baf7be ("luci-lib-httpclient: revamp URL handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
- Introduce a parse_url() helper which properly deals with literal IPv4
and IPv6 host parts and returns the decomposed uri string as table
- Properly format IPv6 literals in autogenerated Host headers
- Omit default port numbers in Host headers and calculated redirect URLs.
Supersedes PR #2337.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Move the old luci.model.ipkg utility class into a separate package and
let the components using it depend on the new library package.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
The previous commit omitted a subdirectory.
Fixes: 94323a61e ("luci-base: move luci.sys.iptparser into separate package")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
treewide: Fix typos in comments
|
|
Since commit f6bfac211 ("luci-mod-status: rework iptables status page"),
nothing in luci-base depends on the iptparser class anymore, so fold it
out into a separate package and let the few apps that require it depend
on the new library package.
Saves about 10K uncompressed in luci-base while the iptables status
rework enlarged the markup by roughly 5KB, saving roughly 5KB of size
overall.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: David Yang <mmyangfl@gmail.com>
|
|
Signed-off-by: Sophana KOK <ml-github@worldspot.net>
|
|
This reverts commit 8ca29efec862350d8d621235999947c329dfaba7.
|
|
Fixes #506
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Fixes the following error when attempting to serialize userdata objects:
.../json.lua:81: attempt to call local 'parser' (a nil value)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Also adjust the dependencies of components depending on these classes and
flatten the namespace from luci.http.protocol.* to luci.http.*
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
With only the decoder routines remaining in luci.http.protocol, it makes no
sense to keep the low level protocol class around, so fold the remaining code
into the central luci.http class.
Also adjust the few direct users of luci.http.protocol accordingly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
fix typo:
sed -i "s/fileystem/filesystem/"
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
The plugin provides a new ubus procedure "network.rrdns.lookup" which
allows looking up the names of a large chunk of IP addresses at once,
within a fixed global timeout.
This is useful to have a guaranteed maximum query time even if the
local DNS setup is broken or timing out.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
|
|
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
|
|
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
|
|
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
|
|
Signed-off-by: Thorsten M. <thoto@devtal.de>
|
|
Pull request app uhttpd
|