llc_pdu_set_pf_bit(9)
π 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 strictly0or1. that's it. that's the whole range. no in-between, no "maybe", no2π
π₯ 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:
llc_pdu_decode_pf_bit(9)llc_pdu_init_as_disc_cmd(9)llc_pdu_init_as_i_cmd(9)llc_pdu_init_as_rej_cmd(9)llc_pdu_init_as_rnr_cmd(9)llc_pdu_init_as_rr_cmd(9)llc_pdu_init_as_sabme_cmd(9)llc_pdu_init_as_dm_rsp(9)llc_pdu_init_as_frmr_rsp(9)llc_pdu_init_as_rr_rsp(9)llc_pdu_init_as_rej_rsp(9)llc_pdu_init_as_rnr_rsp(9)llc_pdu_init_as_ua_rsp(9)llc_pdu_decode_pdu_type(9)llc_pdu_get_pf_bit(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms