85 mif->
actor.state &= ~LACP_STATE_SYNCHRONIZATION;
93 mif->
actor.state |= LACP_STATE_SYNCHRONIZATION;
103 mif->
actor.state &= ~LACP_STATE_COLLECTING;
105 mif->
actor.state &= ~LACP_STATE_DISTRIBUTING;
109 if (mif->
selected == LACP_PORT_SELECTED)
111 LACP_MUX_EVENT_SELECTED, &mif->
mux_state);
113 if (mif->
selected == LACP_PORT_STANDBY)
127 mif->
actor.state &= ~LACP_STATE_COLLECTING;
129 mif->
actor.state &= ~LACP_STATE_DISTRIBUTING;
133 if ((mif->
selected == LACP_PORT_UNSELECTED) ||
134 (mif->
selected == LACP_PORT_STANDBY))
136 LACP_MUX_EVENT_UNSELECTED, &mif->
mux_state);
138 if ((mif->
selected == LACP_PORT_SELECTED) &&
139 (mif->
partner.state & LACP_STATE_SYNCHRONIZATION))
158 if (mif->
selected == LACP_PORT_UNSELECTED)
160 LACP_MUX_EVENT_UNSELECTED, &mif->
mux_state);
171 mif->
actor.state |= LACP_STATE_SYNCHRONIZATION | LACP_STATE_COLLECTING |
172 LACP_STATE_DISTRIBUTING;
176 if ((mif->
selected == LACP_PORT_UNSELECTED) ||
177 (mif->
selected == LACP_PORT_STANDBY) ||
178 !(mif->
partner.state & LACP_STATE_SYNCHRONIZATION))
180 LACP_MUX_EVENT_UNSELECTED, &mif->
mux_state);
190 #define _(b, s, n) {.bit = b, .str = #s, },
195 int e = va_arg (*args,
int);
198 if (e >= (
sizeof (lacp_mux_event_array) /
sizeof (*event_entry)))
199 s =
format (s,
"Bad event %d", e);
201 s =
format (s,
"%s", event_entry[e].str);