summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Álvaro Fernández Rojas [Sun, 19 Oct 2025 18:20:40 +0000 (20:20 +0200)]
omcproxy: update cmake file
Now that the minimum cmake version has been bumped, the cmake file can
be modernized a bit. Although it might look like a lot of changes, most of them
are quite straightforward.
Every library is located in a consistent manner (allowing command-line
overrides of library locations, useful for local development, and also makes it
trivial to do static linking, if desired).
The compiler flags have been broken up to have one per line (making it easy in
the future to add/remove flags, which would create a simple one-line diff).
Although it might look like this bumps the C standard level, cmake is actually
smart enough to pick an earlier version if C11 isn't supported by the compiler
(quite unlikely on any versions of gcc currently in use in OpenWrt and even on
old distros).
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Vladimír Chlup [Thu, 27 Feb 2025 20:42:02 +0000 (21:42 +0100)]
proxy: fix indentation warning
Fixes the following warning caused by a bad indentation:
src/proxy.c: In function ‘proxy_set’:
src/proxy.c:161:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
161 | for (i = 0; i < downlinks_cnt && downlinks[i] == iface->iface->ifindex; ++i);
| ^~~
src/proxy.c:162:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
162 | if (i == downlinks_cnt)
| ^~
Signed-off-by: Vladimír Chlup <jajik@chlup.net>
Link: https://github.com/openwrt/omcproxy/pull/13
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Hauke Mehrtens [Sat, 4 Oct 2025 11:39:53 +0000 (13:39 +0200)]
build: require CMake >= 3.10 due to dropped legacy support
CMake version 4.0 and later require minimum version of 3.5 or later.
Update to minimum version 3.10 which is the last not deprecated minimum
version.
CMake 3.10 was released in November 2017 and is included in Ubuntu 18.04.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Andrew Rodland [Tue, 10 Oct 2023 17:48:10 +0000 (13:48 -0400)]
Update libubox
Commit
bfba2aa75802ff1a70ef2fd3eba53409a8c6e93a adds a call to
uloop_timeout_remaining64, but the submodule is still on a version from
2015 that doesn't have that function.
Update to libubox master as the changes between Nov 2021 and today don't
look scary.
liy1 [Wed, 12 Apr 2023 17:10:40 +0000 (13:10 -0400)]
Fix this typo. Change MaxRespTime from 0.1 second to 10 second
Andrew Rodland [Tue, 10 Oct 2023 17:30:28 +0000 (13:30 -0400)]
Fix null pointer access in proxy_set
We were checking `proxy->ifindex`, but `proxy` is initialized to NULL. Should be checking `p->ifindex` instead.
Signed-off-by: Andrew Rodland <andrew@cleverdomain.org>
Stijn Tintel [Thu, 4 Nov 2021 11:41:19 +0000 (13:41 +0200)]
groups: use uloop_timeout_remaining64
The uloop_timeout_remaining function is being deprecated.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Jo-Philipp Wich <jo@mein.io>
Eneas U de Queiroz [Fri, 14 Dec 2018 17:13:41 +0000 (15:13 -0200)]
mrib.c: don't use cpu_to_be32 outside of function
cpu_to_be32 is not a constant, so it can't be used outside of a
function.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Florian Fainelli [Sun, 12 Feb 2017 22:03:33 +0000 (14:03 -0800)]
Cmake: Find libubox/list.h
Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for
libubox/list.h. Some external toolchains which do not include
standard locations would fail to find the header otherwise.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Steven Barth [Tue, 15 Sep 2015 07:50:53 +0000 (09:50 +0200)]
Reduce default query response interval to 100ms
Steven Barth [Mon, 24 Aug 2015 08:20:32 +0000 (10:20 +0200)]
Initial Release