summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables-restore.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2007-09-20 19:09:29 +0000
committerBart De Schuymer <bdschuym@pandora.be>2007-09-20 19:09:29 +0000
commit7d8ef28fe1a5944b2e7ed3ce4f3f23e5584324b2 (patch)
treedc7eb38cc31405979b17dbdda7e42d80f42769d4 /userspace/ebtables2/ebtables-restore.c
parent1e360f9232b774f3bc8ecf01c0d71834e7498a14 (diff)
make it work for broute and nat tables
Diffstat (limited to 'userspace/ebtables2/ebtables-restore.c')
-rw-r--r--userspace/ebtables2/ebtables-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables-restore.c b/userspace/ebtables2/ebtables-restore.c
index 716ea19..9433e5e 100644
--- a/userspace/ebtables2/ebtables-restore.c
+++ b/userspace/ebtables2/ebtables-restore.c
@@ -68,7 +68,7 @@ int main(int argc_, char *argv_[])
ebtrest_print_error("table '%s' was not recognized", cmdline+1);
table_nr = i;
replace[table_nr].command = 11;
- ebt_get_kernel_table(replace, 1);
+ ebt_get_kernel_table(&replace[table_nr], 1);
replace[table_nr].command = 0;
replace[table_nr].flags = OPT_KERNELDATA; /* Prevent do_command from initialising replace */
continue;