netlbl_cfg_cipsov4_map_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ netlbl_cfg_cipsov4_map_add(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for netlbl_cfg_cipsov4_map_add(9) β€” literally the function that adds a new CIPSOv4 DOI mapping πŸŽ€ yes, that's the whole vibe.


πŸ’– NAME πŸ’–

netlbl_cfg_cipsov4_map_add β€” Add a new CIPSOv4 DOI mapping πŸ¦‹


🌸 SYNOPSIS 🌸

int netlbl_cfg_cipsov4_map_add (u32 doi , const char *domain , const
       struct in_addr *addr , const struct in_addr *mask , struct netlbl_audit
       *audit_info );

like, that's the whole signature. five arguments. she's got range πŸ’…


✨ ARGUMENTS ✨

  • doi β€” the CIPSO DOI πŸ‘‘
  • domain β€” the domain mapping to add 🫢
  • addr β€” IP address 🌐
  • mask β€” IP address mask 🎭
  • audit_info β€” NetLabel audit information πŸ“‹

πŸ’œ DESCRIPTION πŸ’œ

So what does she do? She adds a shiny new NetLabel/LSM domain mapping for the given CIPSO DOI into the NetLabel subsystem. Iconic. No cap. 🌈

and okay, important detail bestie: a domain value of NULL adds a new default domain mapping. that's the special case, don't forget it πŸ™ˆ

Returns zero on success, negative values on failure. periodt. ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/netlabel/netlabel_kapi.c β€” and like, the whole friend group πŸ’–:


ngl bestie, that's a lot of cross-references. read them. they're all slaying in their own way πŸ’€πŸ’…

and that's the page!! mwah πŸ’‹ this little gem lives in ./net/netlabel and it's dated October 2026 β€” see you in the future, bestie πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from