llc_pdu_set_pf_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… llc_pdu_set_pf_bit β€” from the Kernel API Manual ✨

okay so bestie, gather round, because this one is tiny but it's lowkey doing main character work inside your LLC header. The function is llc_pdu_set_pf_bit, and yes, it lives in section 9 of the Kernel API Manual, so you already know it's kernel-adjacent and mysterious πŸŽ€


✨ SYNOPSIS ✨

void llc_pdu_set_pf_bit (struct sk_buff *skb , u8 bit_value );

that's the whole vibe. void return, two args, in and out, no notes πŸ’…


🫢 ARGUMENTS 🫢

  • skb β€” the frame you're gonna set the bit in. like, the actual packet. the main character of the operation 🌸
  • bit_value β€” the poll/final bit value, and it's strictly 0 or 1. that's it. that's the whole range. no in-between, no "maybe", no 2 πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so what does it do? It sets the poll/final bit in the LLC header, and the exact spot it pokes depends on the type of PDU β€” the way that this function is type-aware is honestly iconic ✨

  • in I 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 map, bestie. two different neighborhoods depending on which PDU you're rolling with, and this function knows which one to visit. no cap 🧚

⚠️ heads up: the byte and bit positions are different for I/S versus U PDUs, so don't go assuming one layout fits all β€” that's literally the reason this helper exists instead of you hand-poking bits like a menace πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the whole extended friend group 🫢 β€” kernel file ./net/llc/llc_pdu.c, plus:


and that's the page, bestie πŸ’– this whole thing ships out of ./net/llc, dated October 2026, and the manual name at the top is llc_pdu_set_pf_bit(9) β€” go set some bits, slay, and remember: 0 or 1, periodt 🌈⭐

πŸ“¦ where this page comes from