From 192b91d540aa8c68ab4c0d04b04cbf6651565043 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 19 Jun 2011 19:01:06 +0000 Subject: Make the error message printed when an update of a table is rejected by the kernel --- communication.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/communication.c b/communication.c index c45ebec..4b89a65 100644 --- a/communication.c +++ b/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); -- cgit v1.2.3