/* This function extracts poll/final bit from 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_decode_pf_bit(struct sk_buff *skb, u8 *pf_bit)
/* This function extracts poll/final bit from 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_decode_pf_bit(struct sk_buff *skb, u8 *pf_bit)
{
	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:
		*pf_bit = pdu->ctrl_2 & LLC_S_PF_BIT_MASK;
		break;
	case LLC_PDU_TYPE_U:
		*pf_bit = (pdu->ctrl_1 & LLC_U_PF_BIT_MASK) >> 4;
		break;
	}
}