diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2007-08-30 19:12:10 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2007-08-30 19:12:10 +0000 |
commit | 207455510b499a14baba20ae040c70385e36fb68 (patch) | |
tree | 943d2728b35e5d492107c7f62ebdc0f6aeb701de /sys/net/if_lagg.c | |
parent | 628a706c964ad73d2dbfde43a1fe0a90ac105e47 (diff) | |
download | src-207455510b499a14baba20ae040c70385e36fb68.tar.gz src-207455510b499a14baba20ae040c70385e36fb68.zip |
Notes
Diffstat (limited to 'sys/net/if_lagg.c')
-rw-r--r-- | sys/net/if_lagg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 22462b35c5e5..a0b081a064a1 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -718,6 +718,7 @@ static void lagg_port2req(struct lagg_port *lp, struct lagg_reqport *rp) { struct lagg_softc *sc = lp->lp_softc; + strlcpy(rp->rp_ifname, sc->sc_ifname, sizeof(rp->rp_ifname)); strlcpy(rp->rp_portname, lp->lp_ifp->if_xname, sizeof(rp->rp_portname)); rp->rp_prio = lp->lp_prio; @@ -730,7 +731,10 @@ lagg_port2req(struct lagg_port *lp, struct lagg_reqport *rp) case LAGG_PROTO_FAILOVER: if (lp == sc->sc_primary) rp->rp_flags |= LAGG_PORT_MASTER; - /* FALLTHROUGH */ + if (lp == lagg_link_active(sc, sc->sc_primary)) + rp->rp_flags |= LAGG_PORT_ACTIVE; + break; + case LAGG_PROTO_ROUNDROBIN: case LAGG_PROTO_LOADBALANCE: case LAGG_PROTO_ETHERCHANNEL: |