/* Search thru events of the current state of the station until list exhausted or it's obvious that the event is not valid for the current state. Returns the address of the transition if cound, NULL otherwise.  */
static struct llc_station_state_trans* llc_find_station_trans(struct sk_buff *skb)
/* Search thru events of the current state of the station until list exhausted or it's obvious that the event is not valid for the current state. Returns the address of the transition if cound, NULL otherwise.  */
static struct llc_station_state_trans* llc_find_station_trans(struct sk_buff *skb)
{
	int i = 0;
	struct llc_station_state_trans *rc = NULL;
	struct llc_station_state_trans **next_trans;
	struct llc_station_state *curr_state =
				&llc_station_state_table[llc_main_station.state - 1];
	for (next_trans = curr_state->transitions; next_trans[i]->ev; i++)
		if (!next_trans[i]->ev(skb)) {
			rc = next_trans[i];
			break;
		}
	return rc;
}