llc_pdu_decode_pf_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– llc_pdu_decode_pf_bit πŸ’–

okay so bestie, welcome to the llc_pdu_decode_pf_bit(9) page β€” yes it's a section 9 kernel API manual and yes it's lowkey iconic. this is the little function that goes digging in an LLC header and pulls out the poll/final bit for you. it's giving "small function, big responsibility" and we're obsessed 🫢


🌸 NAME 🌸

llc_pdu_decode_pf_bit β€” grabs the poll/final bit out of an LLC header, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void llc_pdu_decode_pf_bit (struct sk_buff *skb , u8 *pf_bit );

that's it, that's the whole vibe. returns void, so don't go looking for a return value, there isn't one πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the input skb, aka the packet situation the p/f bit has to be extracted from. it's the main character here πŸ‘‘
  • pf_bit β€” the poll/final bit itself, which comes out as either 0 or 1. only those two, it's not complicated πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what this function actually does is extract the poll/final bit from the LLC header, and how it finds it depends on the type of PDU. different PDU, different bit location β€” iykyk 🌈

  • In I pdus or S pdus, the p/f bit is the right bit of the fourth byte in the header.
  • In U pdus, the p/f bit is the fifth bit of the third byte.

that's the whole treasure map bestie, two rules and you're done πŸ—ΊοΈβœ¨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/llc/llc_pdu.c β€” plus the entire friend group of functions that live near it, fr fr:


pro tip from me to you: if you ever forget which byte the p/f bit hides in, just reread DESCRIPTION. I pdus and S pdus? fourth byte, right bit. U pdus? third byte, fifth bit. write it on your hand, it's fine πŸ’€

and that's the page!! mwah πŸ’‹ this beauty ships from the source ./net/llc and is dated October 2026 β€” go forth and decode those bits, bestie, you're gonna slay πŸ§šβ€β™€οΈβ­πŸ’–

πŸ“¦ where this page comes from