/* After receiving of a REJ command or response, transmit window size is decreased by number of PDUs which are outstanding yet. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb)
/* After receiving of a REJ command or response, transmit window size is decreased by number of PDUs which are outstanding yet. Returns 0 for success, 1 otherwise.  */
int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb)
{
	struct llc_sock *llc = llc_sk(sk);
	u8 unacked_pdu = skb_queue_len(&llc->pdu_unack_q);
	if (llc->k - unacked_pdu < 1)
		llc->k = 1;
	else
		llc->k -= unacked_pdu;
	return 0;
}