summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-08-16 19:48:03 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-08-16 19:48:03 +0000
commit15e8eba1f969b8b7f0b71b82468d8b65b22e067c (patch)
tree07b77433daefd4521c7babb4e5b8ebf6f0ffd713 /userspace
parent904bebc0d11429b45f77496be34789b4a70f4b49 (diff)
fix --atomic-commit when ebtables not loaded
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/ebtables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index e62ea2d..5e13061 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -435,7 +435,7 @@ static int get_a_line(char *buffer, char *value, FILE *ifp)
// translate a hexadecimal number to a protocol name, parsing /etc/ethertypes
// returns 0 on success
-// this the name buffer to be of size 21
+// this demands the name buffer to be of size at least 21
int number_to_name(unsigned short proto, char *name)
{
FILE *ifp;
@@ -1959,6 +1959,7 @@ int main(int argc, char *argv[])
// make sure the table will be written to the kernel
free(replace.filename);
replace.filename = NULL;
+ ebtables_insmod("ebtables", modprobe);
break;
case 7 : // atomic-init
case 10: // atomic-save