/* After receiving "dec_cntr" times RNR command, this action decreases "npta" by one. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb)
/* After receiving "dec_cntr" times RNR command, this action decreases "npta" by one. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb)
{
	struct llc_sock *llc = llc_sk(sk);
	if (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;
			} else
				--llc->dec_cntr;
		}
	return 0;
}