/* This function sets poll/final bit in LLC header (based on type of PDU). in I or S pdus, p/f bit is right bit of fourth byte in header. in U pdus p/f bit is fifth bit of third byte.  */
void llc_pdu_set_pf_bit(struct sk_buff *skb, u8 bit_value)
/* This function sets poll/final bit in LLC header (based on type of PDU). in I or S pdus, p/f bit is right bit of fourth byte in header. in U pdus p/f bit is fifth bit of third byte.  */
void llc_pdu_set_pf_bit(struct sk_buff *skb, u8 bit_value)
{
	u8 pdu_type;
	struct llc_pdu_sn *pdu;
	llc_pdu_decode_pdu_type(skb, &pdu_type);
	pdu = llc_pdu_sn_hdr(skb);
	switch (pdu_type) {
	case LLC_PDU_TYPE_I:
	case LLC_PDU_TYPE_S:
		pdu->ctrl_2 = (pdu->ctrl_2 & 0xFE) | bit_value;
		break;
	case LLC_PDU_TYPE_U:
		pdu->ctrl_1 |= (pdu->ctrl_1 & 0xEF) | (bit_value << 4);
		break;
	}
}