/* Executes actions that is related to happened event. Returns 0 for success, 1 to indicate failure of at least one action.  */
static int llc_exec_conn_trans_actions(struct sock *sk, struct llc_conn_state_trans *trans, struct sk_buff *ev)
/* Executes actions that is related to happened event. Returns 0 for success, 1 to indicate failure of at least one action.  */
static int llc_exec_conn_trans_actions(struct sock *sk, struct llc_conn_state_trans *trans, struct sk_buff *ev)
{
	int rc = 0;
	llc_conn_action_t *next_action;
	for (next_action = trans->ev_actions;
	     next_action && *next_action; next_action++) {
		int rc2 = (*next_action)(sk, skb);
		if (rc2 == 2) {
			rc = rc2;
			break;
		} else if (rc2)
			rc = 1;
	}
	return rc;
}