netlbl_cfg_unlbl_static_add(9)
β¨ 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
netlbl_cfg_map_del(9)netlbl_cfg_unlbl_map_add(9)netlbl_cfg_unlbl_static_del(9)netlbl_cfg_cipsov4_add(9)netlbl_cfg_cipsov4_del(9)netlbl_cfg_cipsov4_map_add(9)netlbl_cfg_calipso_add(9)netlbl_cfg_calipso_del(9)netlbl_cfg_calipso_map_add(9)_netlbl_catmap_getnode(9)netlbl_catmap_walk(9)netlbl_catmap_walkrng(9)netlbl_catmap_getlong(9)netlbl_catmap_setbit(9)netlbl_catmap_setrng(9)netlbl_catmap_setlong(9)netlbl_bitmap_walk(9)netlbl_bitmap_setbit(9)netlbl_enabled(9)netlbl_sock_setattr(9)netlbl_sock_delattr(9)netlbl_sock_getattr(9)netlbl_sk_lock_check(9)netlbl_conn_setattr(9)netlbl_req_setattr(9)netlbl_req_delattr(9)netlbl_skbuff_setattr(9)netlbl_skbuff_getattr(9)netlbl_skbuff_err(9)netlbl_cache_invalidate(9)netlbl_cache_add(9)netlbl_audit_start(9)netlbl_init(9)
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
- 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