STRUCT LLC_SAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME

okay so welcome to the struct llc_sap(9) page from the Kernel API Manual, bestie πŸ’– and this one is literally here to define the SAP component, no cap ✨

struct llc_sap β€” Defines the SAP component 🫢

✨ SYNOPSIS

vibe check on the struct, and yes we are keeping every single field exactly as written πŸ’…

       struct llc_sap {
           unsigned char    state;
           unsigned char    p_bit;
           unsigned char    f_bit;
           refcount_t refcnt;
           int (*rcv_func)(struct sk_buff *skb, struct net_device *dev, struct
       packet_type *pt, struct net_device *orig_dev);
           struct llc_addr  laddr;
           struct list_head node;
           spinlock_t sk_lock;
           int sk_count;
           struct hlist_nulls_head sk_laddr_hash[LLC_SK_LADDR_HASH_ENTRIES];
           struct hlist_head sk_dev_hash[LLC_SK_DEV_HASH_ENTRIES];
           struct rcu_head rcu;
        };

πŸŽ€ Members

the member notes are chilling right below in Description, keep scrolling bestie πŸ‘‡

πŸ’… Description

okay so here are the member deets this page gives us β€” same names, same wording, periodt:

  • station β€” station this sap belongs to
  • state β€” sap state
  • p_bit β€” only lowest-order bit used
  • f_bit β€” only lowest-order bit used
  • laddr β€” SAP value in this 'lsap'
  • node β€” entry in station sap_list
  • sk_list β€” LLC sockets this one manages

πŸ”₯ SEE ALSO

Kernel file ./include/net/llc.h β€” go peek, iykyk πŸ‘€


signing off from the ./include/net source/version, dated October 2026 β€” mwah πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from