summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-06-05 18:13:51 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-06-05 18:13:51 +0000
commit39cae91fbd8295571e7a8d2c192bb4ccce0dacb6 (patch)
tree14a912f26b75626ef84b1a818332e1f0ff69628d /userspace/ebtables2
parent4fd5f08a3940c03dd714aeaade4f8d80dd096bc4 (diff)
Change ebtables output when the kernel doesn't support a module.
This is for the ebtables kernel code that now supports automount.
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r--userspace/ebtables2/communication.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c
index 02aff3f..54bdf01 100644
--- a/userspace/ebtables2/communication.c
+++ b/userspace/ebtables2/communication.c
@@ -172,8 +172,9 @@ void deliver_table(struct ebt_u_replace *u_repl)
// give the data to the kernel
optlen = sizeof(struct ebt_replace) + repl->entries_size;
if (setsockopt(sockfd, IPPROTO_IP, EBT_SO_SET_ENTRIES, repl, optlen))
- print_error("Couldn't update kernel chains, you probably need "
- "to insmod an extension");
+ print_error("The kernel doesn't support a certain ebtables"
+ " extension, consider recompiling your kernel or insmod"
+ " the extension");
}
// gets executed after deliver_table
@@ -379,9 +380,9 @@ void get_table(struct ebt_u_replace *u_repl)
optlen = sizeof(struct ebt_replace);
strcpy(repl.name, u_repl->name);
if (getsockopt(sockfd, IPPROTO_IP, EBT_SO_GET_INFO, &repl, &optlen))
- print_error("A kernel module needed by your command is probably"
- " not loaded. Try insmod ebtables or"
- " insmod ebtable_%s", repl.name);
+ print_error("The %s table is not supported by the kernel,"
+ " consider recompiling your kernel or try insmod ebt_%s",
+ repl.name, repl.name);
if ( !(repl.entries = (char *) malloc(repl.entries_size)) )
print_memory();