* [conntrack-tools PATCH v2] nfct: helper: Extend error message for EBUSY
@ 2025-08-28 12:33 Phil Sutter
2025-09-09 15:35 ` Phil Sutter
0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2025-08-28 12:33 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel, Yi Chen
Users may be not aware the user space helpers conflict with kernel space
ones, so add a hint about the possible cause of the EBUSY code returned
by the kernel.
Cc: Yi Chen <yiche@redhat.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
Changes since v1:
- React upon EBUSY instead of EEXIST to cover for recent kernel changes.
---
src/nfct-extensions/helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/nfct-extensions/helper.c b/src/nfct-extensions/helper.c
index 894bf269ad2bb..3d32703d13903 100644
--- a/src/nfct-extensions/helper.c
+++ b/src/nfct-extensions/helper.c
@@ -229,6 +229,9 @@ static int nfct_cmd_helper_add(struct mnl_socket *nl, int argc, char *argv[])
portid = mnl_socket_get_portid(nl);
if (nfct_mnl_talk(nl, nlh, seq, portid, NULL, NULL) < 0) {
nfct_perror("netlink error");
+ if (errno == EBUSY)
+ fprintf(stderr,
+ "Maybe unload nf_conntrack_%s.ko first?\n", argv[3]);
return -1;
}
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-09 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 12:33 [conntrack-tools PATCH v2] nfct: helper: Extend error message for EBUSY Phil Sutter
2025-09-09 15:35 ` Phil Sutter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).