/* After receiving "dec_cntr" times RR command, this action decreases "npta" by one. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb)
/* After receiving "dec_cntr" times RR command, this action decreases "npta" by one. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb)
{
	struct llc_sock *llc = llc_sk(sk);
	if (!llc->connect_step && !llc->remote_busy_flag) {
		if (!llc->dec_step) {
			if (!llc->dec_cntr) {
				llc->inc_cntr = llc->dec_cntr = 2;
				if (llc->npta > 0)
					llc->npta = llc->npta - 1;
			} else
				llc->dec_cntr -=1;
		}
	} else
		llc->connect_step = 0 ;
	return 0;
}