netlbl_cfg_unlbl_static_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ netlbl_cfg_unlbl_static_add β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the Kernel API Manual page for netlbl_cfg_unlbl_static_add(9) and honestly? she's giving "quiet little function that does Exactly One Thing and does it slayfully." let's get into it πŸ’…


🌸 NAME 🌸

netlbl_cfg_unlbl_static_add β€” Adds a new static label. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

int netlbl_cfg_unlbl_static_add (struct net *net , const char *dev_name
, const void *addr , const void *mask , u16 family , u32 secid , struct
netlbl_audit *audit_info );

like. she takes seven arguments and returns an int. main character energy fr fr πŸŽ€


πŸ‘‘ ARGUMENTS πŸ‘‘

each one of these is a whole personality, so let's do intros:

  • net β€” the network namespace. her whole world, literally.
  • dev_name β€” the interface name. which network girly we're talking about 🫢
  • addr β€” the IP address in network byte order (struct in[6]_addr). byte order matters bestie, don't come at me.
  • mask β€” the address mask in network byte order (struct in[6]_addr). yes, same byte order situation. consistency icon.
  • family β€” the address family. iykyk.
  • secid β€” the LSM secid value for the entry. security vibes only πŸ”₯
  • audit_info β€” the NetLabel audit information. she's keeping receipts πŸ“

🧚 DESCRIPTION 🧚

so what does she actually do? she adds a new NetLabel static label β€” the kind that gets used when protocol provided labels are not present on incoming traffic. like a little fallback bestie standing by in case nobody else shows up πŸ˜­πŸ’–

and the cute part: if dev_name is NULL then the default interface will be used. so if you're feeling lazy, she's got you.

she returns zero on success, and negative values on failure. that's it. that's the whole vibe check.


🌈 SEE ALSO 🌈

the whole friend group, no cap β€” plus where to find the source: Kernel file ./net/netlabel/netlabel_kapi.c


ngl that's a lot of see-alsos but she's popular, what can i say πŸ’€

and that's the whole page!! mwah πŸ’‹ huge thanks to ./net/netlabel β€” this absolute icon dropped in October 2026, section 9, and we are obsessed. go forth and label statically, bestie πŸŽ€βœ¨πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from