|
Lines 590-599
Link Here
|
| 590 |
{ |
590 |
{ |
| 591 |
struct lacp_opreq *req = (struct lacp_opreq *)data; |
591 |
struct lacp_opreq *req = (struct lacp_opreq *)data; |
| 592 |
struct lacp_softc *lsc = LACP_SOFTC(sc); |
592 |
struct lacp_softc *lsc = LACP_SOFTC(sc); |
| 593 |
struct lacp_aggregator *la = lsc->lsc_active_aggregator; |
593 |
struct lacp_aggregator *la; |
| 594 |
|
594 |
|
|
|
595 |
bzero(req, sizeof(struct lacp_opreq)); |
| 596 |
|
| 597 |
/* |
| 598 |
* If the LACP softc is NULL, return with the opreq structure full of |
| 599 |
* zeros. It is normal for the softc to be NULL while the lagg is |
| 600 |
* being destroyed. |
| 601 |
*/ |
| 602 |
if (NULL == lsc) |
| 603 |
return; |
| 604 |
|
| 605 |
la = lsc->lsc_active_aggregator; |
| 595 |
LACP_LOCK(lsc); |
606 |
LACP_LOCK(lsc); |
| 596 |
bzero(req, sizeof(struct lacp_opreq)); |
|
|
| 597 |
if (la != NULL) { |
607 |
if (la != NULL) { |
| 598 |
req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio); |
608 |
req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio); |
| 599 |
memcpy(&req->actor_mac, &la->la_actor.lip_systemid.lsi_mac, |
609 |
memcpy(&req->actor_mac, &la->la_actor.lip_systemid.lsi_mac, |