diff options
author | Corubba Smith <corubba@gmx.de> | 2025-03-27 00:07:49 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-05-20 12:46:00 +0200 |
commit | b794e7b89ab0324eceac8f3e16560cd5a50d63a8 (patch) | |
tree | 1322f3da8ab69240c419e56c0917c62c505463c3 /src/addr.c | |
parent | b039c9c9d2b8dcdd9accd1cba35a5119d48babf2 (diff) |
nfct: add network namespace support
Allow the plugin to fetch data from a different network namespace. This
is possible by changing the network namespace before opening the netlink
socket, and immediately changing back to the original network namespace
once the socket is open. The number of nfct_open usages here warranted a
dedicated wrapper function.
If changing back to the original network namespace fails, ulogd will
log an error, but continue to run in a different network namespace than
it was started in, which may cause unexpected behaviour. But I don't see
a way to properly "escalate" it such that ulogd aborts entirely.
Also slightly adjust the error log messages to specify which socket
failed to open.
Signed-off-by: Corubba Smith <corubba@gmx.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/addr.c')
0 files changed, 0 insertions, 0 deletions