Hi,
Currently, bridging will mess up if you enslave two ethernet devices with
the same ethernet address and then delete one (the address will no longer
be marked as 'local'). Attached patch allows duplicate ethernet addresses in
the address database, as long as they're all local. Please apply.
cheers,
Lennert
--- linux-2.4.17-4um-hack/net/bridge/br_fdb.c.orig Wed Jan 9 15:57:18 2002
+++ linux-2.4.17-4um-hack/net/bridge/br_fdb.c Wed Jan 9 16:51:39 2002
@@ -292,7 +292,8 @@
write_lock_bh(&br->hash_lock);
fdb = br->hash[hash];
while (fdb != NULL) {
- if (!memcmp(fdb->addr.addr, addr, ETH_ALEN)) {
+ if (!fdb->is_local &&
+ !memcmp(fdb->addr.addr, addr, ETH_ALEN)) {
__fdb_possibly_replace(fdb, source, is_local);
write_unlock_bh(&br->hash_lock);
return;
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge