project/omcproxy.git
3 weeks agogithub: ci: add cmake build and source directories
Álvaro Fernández Rojas [Fri, 14 Nov 2025 13:25:05 +0000 (14:25 +0100)]
github: ci: add cmake build and source directories

Add cmake build and source directories to suppress the following warning:
CMake Warning:
  No source or binary directory provided. Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
3 weeks agogithub: ci: disable json-c tests
Álvaro Fernández Rojas [Fri, 14 Nov 2025 07:36:51 +0000 (08:36 +0100)]
github: ci: disable json-c tests

Disable BUILD_TESTING to save time when building json-c.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
3 weeks agoscripts: devel-build: disable json-c tests
Álvaro Fernández Rojas [Fri, 14 Nov 2025 07:35:18 +0000 (08:35 +0100)]
scripts: devel-build: disable json-c tests

Disable BUILD_TESTING to save time when building json-c.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
4 weeks agogithub: fix CI apt dependencies
Álvaro Fernández Rojas [Mon, 3 Nov 2025 06:38:52 +0000 (07:38 +0100)]
github: fix CI apt dependencies

We need to run 'apt update' before installing the APT packages.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
5 weeks agoREADME: update build instructions
Vladimír Chlup [Thu, 23 Oct 2025 20:44:46 +0000 (22:44 +0200)]
README: update build instructions

After recent changes (8957f6c2557b and 49df5f5b8704) related to the building
process the README became outdated.

Signed-off-by: Vladimír Chlup <[email protected]>
Link: https://github.com/openwrt/omcproxy/pull/16
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
6 weeks agoomcproxy: use syslog mask for logging level
Álvaro Fernández Rojas [Wed, 22 Oct 2025 18:14:23 +0000 (20:14 +0200)]
omcproxy: use syslog mask for logging level

Make use of syslog setlogmask() instead of handling logging level manually.
Fixes unused variable errors when L_LEVEL is set to < 7.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
6 weeks agogithub: add CI build
Álvaro Fernández Rojas [Sun, 19 Oct 2025 17:57:04 +0000 (19:57 +0200)]
github: add CI build

Add Github CI supporting different architectures and build options.
Add summary with binary sizes.
Upload binaries as artifacts.
Add OpenWrt formalities.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
6 weeks agoomcproxy: add a simple build script
Álvaro Fernández Rojas [Sun, 19 Oct 2025 18:14:34 +0000 (20:14 +0200)]
omcproxy: add a simple build script

Should make it a little bit easier for people who want to contribute.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
6 weeks agolibubox: remove submodule
Álvaro Fernández Rojas [Sun, 19 Oct 2025 17:48:34 +0000 (19:48 +0200)]
libubox: remove submodule

Including the libubox repository as a module isn't needed.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
6 weeks agoomcproxy: update cmake file
Á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 <[email protected]>
6 weeks agoproxy: fix indentation warning
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 <[email protected]>
Link: https://github.com/openwrt/omcproxy/pull/13
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
2 months agobuild: require CMake >= 3.10 due to dropped legacy support
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 <[email protected]>
9 months agoUpdate libubox
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.

9 months agoFix this typo. Change MaxRespTime from 0.1 second to 10 second
liy1 [Wed, 12 Apr 2023 17:10:40 +0000 (13:10 -0400)]
Fix this typo. Change MaxRespTime from 0.1 second to 10 second

2 years agoFix null pointer access in proxy_set
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 <[email protected]>
4 years agogroups: use uloop_timeout_remaining64
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 <[email protected]>
Acked-by: Jo-Philipp Wich <[email protected]>
6 years agomrib.c: don't use cpu_to_be32 outside of function
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 <[email protected]>
8 years agoCmake: Find libubox/list.h
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 <[email protected]>
10 years agoReduce default query response interval to 100ms
Steven Barth [Tue, 15 Sep 2015 07:50:53 +0000 (09:50 +0200)]
Reduce default query response interval to 100ms

10 years agoInitial Release
Steven Barth [Mon, 24 Aug 2015 08:20:32 +0000 (10:20 +0200)]
Initial Release