--- zzzz-none-000/linux-2.4.17/net/bridge/br_stp.c 2000-06-19 20:45:51.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/net/bridge/br_stp.c 2004-11-24 13:22:09.000000000 +0000 @@ -5,7 +5,7 @@ * Authors: * Lennert Buytenhek * - * $Id: br_stp.c,v 1.4 2000/06/19 10:13:35 davem Exp $ + * $Id: br_stp.c,v 1.1.1.1 2003/06/23 22:18:44 jharrell Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -369,10 +369,19 @@ static void br_make_forwarding(struct net_bridge_port *p) { if (p->state == BR_STATE_BLOCKING) { - printk(KERN_INFO "%s: port %i(%s) entering %s state\n", - p->br->dev.name, p->port_no, p->dev->name, "listening"); + if (p->br->stp_enabled) { + printk(KERN_INFO "%s: port %i(%s) entering %s state\n", + p->br->dev.name, p->port_no, p->dev->name, + "listening"); + + p->state = BR_STATE_LISTENING; + } else { + printk(KERN_INFO "%s: port %i(%s) entering %s state\n", + p->br->dev.name, p->port_no, p->dev->name, + "learning"); - p->state = BR_STATE_LISTENING; + p->state = BR_STATE_LEARNING; + } br_timer_set(&p->forward_delay_timer, jiffies); } }