llc_build_and_send_xid_pkt(9)
π llc_build_and_send_xid_pkt(9) β from the Kernel API Manual π
okay so bestie, pull up a chair, because this one's a little function with main character energy in the LLC (Logical Link Control) world. It's the XID interface for upper layers β that's the NAME section, and yes we're keeping it β¨
πΈ SYNOPSIS πΈ
void llc_build_and_send_xid_pkt (struct llc_sap *sap , struct sk_buff
*skb , u8 *dmac , u8 dsap );
not me copying that exactly as written, line break and all, because the facts are sacred even when the formatting is giving "wrote this at 3am" ππ
π«Ά ARGUMENTS π«Ά
four args, all of them important, none of them optional, let's go π
sapβ thesapto use. that's your Service Access Point, the whole reason this function can do its thing π§skbβ the packet to send. yoursk_buff, your moment, your payload πdmacβ destination mac address. where it's going, fr fr π¦dsapβ destination sap. where it's going logically, iykyk β
π DESCRIPTION π
so here's the vibe: this function gets called when an upper layer wants to send a XID pdu. that's it, that's the whole gig, no cap π
and then β okay this is my favorite part β the manpage says it returns 0 for success, 1 otherwise. which is iconic of it. and also, if you scroll back up to the SYNOPSIS, it's declared void. so the docs are out here giving "both things are true" π i'm just telling you what the page says, bestie, i'm not here to litigate it π
π₯ SEE ALSO π₯
the whole friend group, assembles πΈ
- Kernel file
./net/llc/llc_sap.c llc_alloc_frame(9)llc_sap_rtn_pdu(9)llc_find_sap_trans(9)llc_exec_sap_trans_actions(9)llc_sap_next_state(9)llc_sap_state_process(9)llc_build_and_send_test_pkt(9)llc_sap_rcv(9)llc_lookup_dgram(9)llc_sap_mcast(9)
quick vibe check before you go: everything above is exactly what the page says. don't come for me if the return value situation confuses you β i simply reported it with love π©·
and that's the whole page, diva π
it lives under ./net/llc, dated October 2026, all official in the Kernel API Manual. mwah, go send some XID pdus ππ
π¦ 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