Re: Bugs in ebtables-restore extension presence checks and other, suggestion for /proc interface
Bart De Schuymer <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Op di, 11-09-2007 te 01:11 +0200, schreef Lech Perczak: > Hi. I'm working on ebtables init script for Gentoo, and I've encountered > > certain problems when trying to control it with ebtables-save and > > ebtables-restore. The attached patch to the userspace program should solve things. The /proc changes will have to wait until later. I'm on holiday for 2 weeks starting saturday. I'll make a new release tomorrow with this fix unless you report another problem... cheers, Bart ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ebtables-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ebtables-devel
ebt-restore.diff
(text/x-patch, 532 B)
--- ebtables-restore.c.old 2007-09-20 21:02:33.000000000 +0200
+++ ebtables-restore.c 2007-09-20 21:02:38.000000000 +0200
@@ -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;