Add upstream debian patches
PATCH 1/1 Add upstream debian patches
Hello list,
Debian has had these patches by Santiago Garcia Mantinan for ages [0][1], and they have not been applied yet. We're trying to run a 32-bit brctl on a 64-bit system, and got bitten by this. Can you apply the patches below so other distributions can also benefit from this?
Thanks,
Jasper
[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496491
[1] https://lists.linux-foundation.org/pipermail/bridge/2008-August/006011.html
--- brctl/brctl.c | 2 +- doc/FAQ | 2 +- doc/FIREWALL | 5 ++--- libbridge/libbridge_devif.c | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-)
brctl/brctl.c +1 -1
@@ -69,7 +69,7 @@ int main(int argc, char *const* argv) argc -= optind; argv += optind;if ((cmd =command_lookup (*argv)) ==NULL ) { -fprintf (stderr,"never heard of command [%s]\n" , argv[1 ]); +fprintf (stderr,"never heard of command [%s]\n" , argv[0 ]); goto help; }
doc/FAQ +1 -1
@@ -1,4 +1,4 @@ The FAQ is now located at - http://bridge.sourceforge.net/faq.html + http://www.linux-foundation.org/en/Net:Bridge
doc/FIREWALL +2 -3
@@ -7,10 +7,9 @@ care. How do bridging and firewalling go together? First of all, you need a kernel patch against the 2.4 kernel to actually make firewalling bridged packets possible. You need to apply this patch to your kernel and recompile -it, or alternatively, download a pre-patched Red Hat 7.2 kernel RPM and use -that. The patch and kernel RPM are located at: +it. The patch is maintained at: - http://bridge.sourceforge.net/devel/bridge-nf/ + http://ebtables.sourceforge.net/ Now if you boot with this kernel, you can use the regular iptables firewalling as if you were doing routing. So, rules for forwarding are
libbridge/libbridge_devif.c +1 -1
@@ -286,7 +286,7 @@ static int br_set(const char *bridge, const char *name,char path[SYSFS_PATH_MAX ];FILE *f; -snprintf (path,SYSFS_PATH_MAX ,SYSFS_CLASS_NET "%s/%s" , bridge, name); +snprintf (path,SYSFS_PATH_MAX ,SYSFS_CLASS_NET "%s/bridge/%s" , bridge, name); f =fopen (path,"w" );if (f) {
Signature · 1 line
1.6.3.3
Hi!
Quoted 2 lines
Debian has had these patches by Santiago Garcia Mantinan for ages [0][1], and they have not been applied yet. We're trying to run a 32-bit brctl on a
I'd like to make clear that the patches were not made by me, they are what people has been submitting to Debian through our bts for a long time, I'm just the maintainer for bridge-utils on Debian and thus collected them and submitted them a long time ago to this list, see
https://lists.linux-foundation.org/pipermail/bridge/2008-August/006011.html
for more info on all this.
Regards...
Signature · 1 line
Manty/BestiaTester -> http://manty.net