Attention is currently required from: Timur Davydov.
View Change
1 comment:
Patchset:
Patch Set #2:
No, I'm not claiming that netns functionality is usable at runtime on the Web. […]
@dtv.comp@gmail.com so, the facts are, afaiu, in order (let me know if I understood correctly):
- Code inside netns.c and netns.h is guarded by "defined(__linux__)", which effectively disables its code when building with emscripten
- Currently netdev.c and/or tun.c fail to build if netns.c code is disabled (!defined(__linux)__)
My proposal:
- Try to remove the defined(__linux__) in netns.c
- * if everything compiles fine with emscripten, submit a patch that way: using a netns in netdev/tun will simply fail at runtime
- * if compilation files (eg. because unshare(), mount() or setns() are unavailable), then add a configure.ac block to check for any of those which fails and based on that, in netns.c change the code path with #ifdef HAVE_* to return -ENOSUP; or similar.
^ In your commit, please explain the result of all that, with explicit errors, missing functions, etc.
To view, visit change 41878. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I2322eb2936bea35596f1fd6b6a713ea5f997b1ea
Gerrit-Change-Number: 41878
Gerrit-PatchSet: 3
Gerrit-Owner: Timur Davydov <dtv.comp@gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin@sysmocom.de>
Gerrit-Attention: Timur Davydov <dtv.comp@gmail.com>
Gerrit-Comment-Date: Wed, 21 Jan 2026 10:59:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin@sysmocom.de>
Comment-In-Reply-To: Timur Davydov <dtv.comp@gmail.com>