llc_build_and_send_pkt(9)
π llc_build_and_send_pkt(9) β the Kernel API Manual, bestie edition π
okay so this is llc_build_and_send_pkt from the Kernel API Manual section 9, and it's giving "the upper layer finally hit send" energy β¨
β¨ NAME β¨
llc_build_and_send_pkt β connection data sending for upper layers π¦
πΈ SYNOPSIS πΈ
int llc_build_and_send_pkt (struct sock *sk , struct sk_buff *skb );
π ARGUMENTS π
skβ the connection πskbβ the packet to send π¦
π DESCRIPTION π
So the way this works: this function gets called when the upper layer wants to send data using connection oriented communication mode, iykyk π₯
While it's sending data, the connection gets locked, and received frames plus expired timers get queued β no cutting the line, they wait their turn π§
Return values, bestie, memorize these:
0β success, slay β-ECONNABORTEDβ when the connection already closed π-EBUSYβ when sending data is not permitted in this state, OR when LLC has send an I pdu with p bit set to 1 and is waiting for it's response π
fr fr important: this function always consumes a reference to the skb β no cap, don't go freeing that thing yourself afterwards π
π SEE ALSO π
Kernel file ./net/llc/llc_if.c, plus these iconic siblings:
and that's the whole vibe check π this page lives in ./net/llc, stamped October 2026 β go forth and send those packets, main character π«Άβ¨
π¦ 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