diff options
author | Phil Sutter <phil@nwl.cc> | 2025-08-15 17:52:32 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2025-09-09 17:35:00 +0200 |
commit | 766122f0a4cb966d85c13ad8cfabd636c9bcf043 (patch) | |
tree | a0ebcf48fb929658faec0dd58d3dbaba78930706 | |
parent | 9028ea6d08ebc79948415c99e1ea9d1ffa33187e (diff) |
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>
-rw-r--r-- | src/nfct-extensions/helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nfct-extensions/helper.c b/src/nfct-extensions/helper.c index 894bf26..3d32703 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; } |