From bf974ebd04697f06818d87f1eb221687e05cabe3 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 11 Oct 2005 02:58:32 +0000 Subject: Do not unconditionally set a spanning tree port to forwarding as the link may be down when we attach. We wont get updated until a linkstate change happens. Go via bstp_ifupdstatus() which checks the media status first. --- sys/net/bridgestp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 582d5a6..76250f1 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -883,7 +883,7 @@ bstp_initialization(struct bridge_softc *sc) LIST_FOREACH(bif, &sc->sc_iflist, bif_next) { if (bif->bif_flags & IFBIF_STP) - bstp_enable_port(sc, bif); + bstp_ifupdstatus(sc, bif); else bstp_disable_port(sc, bif); } -- cgit v1.1