summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2011-06-19 19:01:06 +0000
committerBart De Schuymer <bdschuym@pandora.be>2011-06-19 19:01:06 +0000
commit8a59623f5d9b8bd8f95c7c687a2312ff333872cf (patch)
tree8ab90fe1c2a7b5c4da7351eba7a3b65a1add8c21 /userspace
parent2a10d352b630542f0a6be7f628f9785019ed548a (diff)
Make the error message printed when an update of a table is rejected by the kernel
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/communication.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c
index c45ebec..4b89a65 100644
--- a/userspace/ebtables2/communication.c
+++ b/userspace/ebtables2/communication.c
@@ -238,9 +238,13 @@ void ebt_deliver_table(struct ebt_u_replace *u_repl)
goto free_repl;
}
- ebt_print_error("The kernel doesn't support a certain ebtables"
- " extension, consider recompiling your kernel or insmod"
- " the extension");
+ ebt_print_error("Unable to update the kernel. Two possible causes:\n"
+ "1. Multiple ebtables programs were executing simultaneously. The ebtables\n"
+ " userspace tool doesn't by default support multiple ebtables programs running\n"
+ " concurrently. The ebtables option --concurrent or a tool like flock can be\n"
+ " used to support concurrent scripts that update the ebtables kernel tables.\n"
+ "2. The kernel doesn't support a certain ebtables extension, consider\n"
+ " recompiling your kernel or insmod the extension.\n");
free_repl:
if (repl) {
free(repl->entries);