void lswitch_wait(struct lswitch *sw) { if (sw->ml) { mac_learning_wait(sw->ml); } }
void lswitch_wait(struct lswitch *sw) { if (sw->ml) { mac_learning_wait(sw->ml); } if (sw->last_reply != LLONG_MIN) { wait_timeout(sw->last_reply); } else if (sw->last_query != LLONG_MIN) { wait_timeout(sw->last_query); } }