92 if (!(mif->
partner.state & LACP_STATE_LACP_ACTIVITY) &&
93 !(mif->
actor.state & LACP_STATE_LACP_ACTIVITY))
95 LACP_PTX_EVENT_NO_PERIODIC, &mif->
ptx_state);
106 if (timer_expired || (mif->
partner.state & LACP_STATE_LACP_TIMEOUT))
108 LACP_PTX_EVENT_TIMER_EXPIRED, &mif->
ptx_state);
121 if (!(mif->
partner.state & LACP_STATE_LACP_ACTIVITY) &&
122 !(mif->
actor.state & LACP_STATE_LACP_ACTIVITY))
124 LACP_PTX_EVENT_NO_PERIODIC, &mif->
ptx_state);
137 LACP_PTX_EVENT_TIMER_EXPIRED, &mif->
ptx_state);
139 if (!(mif->
partner.state & LACP_STATE_LACP_TIMEOUT))
141 LACP_PTX_EVENT_LONG_TIMEOUT, &mif->
ptx_state);
153 if (!(mif->
partner.state & LACP_STATE_LACP_ACTIVITY) &&
154 !(mif->
actor.state & LACP_STATE_LACP_ACTIVITY))
156 LACP_PTX_EVENT_NO_PERIODIC, &mif->
ptx_state);
162 if (mif->
partner.state & LACP_STATE_LACP_TIMEOUT)
164 LACP_PTX_EVENT_SHORT_TIMEOUT, &mif->
ptx_state);
167 LACP_PTX_EVENT_LONG_TIMEOUT, &mif->
ptx_state);
177 #define _(b, s, n) {.bit = b, .str = #s, },
182 int e = va_arg (*args,
int);
185 if (e >= (
sizeof (lacp_ptx_event_array) /
sizeof (*event_entry)))
186 s =
format (s,
"Bad event %d", e);
188 s =
format (s,
"%s", event_entry[e].str);
223 LACP_PTX_EVENT_NO_PERIODIC, &mif->
ptx_state);