llc_establish_connection(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– llc_establish_connection(9) πŸ’–

okay so this is a page from the Kernel API Manual, section 9 β€” yes bestie, the big kernel one. sit down, grab a boba, we're learning kernel networking 🧚✨


🌸 NAME 🌸

llc_establish_connection β€” the function your upper layer calls when it wants to ~establish a conn~ 🫢


✨ SYNOPSIS ✨

int llc_establish_connection (struct sock *sk , const u8 *lmac , u8
*dmac , u8 dsap );

like, it returns an int, it's got four args, and yes the line break in the middle of u8 *dmac is literally how it's printed, we don't question the manpage typography πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the connection πŸ¦‹ (that's it, that's the description, she's a struct sock * and she's the connection)
  • lmac β€” local mac address πŸ“ (a const u8 *, so hands off)
  • dmac β€” destination mac address 🎯
  • dsap β€” destination sap πŸ”–

πŸ‘‘ DESCRIPTION πŸ‘‘

so the upper layer calls this function when it wants to establish an LLC connection with a remote machine 🌈. that's the whole vibe.

what it actually does: this function packages a proper event and sends it to the connection component state machine πŸ“¦βž‘οΈπŸ§ . very main character of it.

and when the connection establishment either succeeds or fails, that info gets passed back up to the upper layer β€” by calling its confirm function and passing the proper information along πŸ’Œ. so you're never left on read, periodt.


πŸ”₯ SEE ALSO πŸ”₯


mwah, that's the whole page πŸ’œ this one lives in ./net/llc, and the date on it is October 2026 β€” go off, future manpage πŸ—“οΈβœ¨ ily, stan the kernel, bye bestie πŸŽ€

πŸ“¦ where this page comes from