cipso_v4_map_cat_rbm_ntoh(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cipso_v4_map_cat_rbm_ntoh β€” like, the Kernel API Manual page you didn't know you needed

okay bestie, so this whole thing lives under the Kernel API Manual, and today's main character is cipso_v4_map_cat_rbm_ntoh. yes it's a mouthful. no we're not pronouncing it out loud. πŸ’–


✨ NAME ✨

cipso_v4_map_cat_rbm_ntoh β€” Perform a category mapping from network to host. that's it, that's the whole vibe: net β†’ host, categories get translated, we move on. πŸ¦‹


🌸 SYNOPSIS 🌸

int cipso_v4_map_cat_rbm_ntoh (const struct cipso_v4_doi *doi_def ,
const unsigned char *net_cat , u32 net_cat_len , struct
netlbl_lsm_secattr *secattr );

πŸŽ€ ARGUMENTS πŸŽ€

  • doi_def β€” the DOI definition. your blueprint, your little rulebook, your whole reference for how the mapping should go. πŸ‘‘
  • net_cat β€” the category bitmap in network/CIPSO format. this is the one that needs translating, bestie. ✨
  • net_cat_len β€” the length of the CIPSO bitmap in bytes. yes, bytes. count carefully. πŸ“
  • secattr β€” the security attributes. this is where the results end up. 🫢

πŸ’œ DESCRIPTION πŸ’œ

so what are we actually doing here? πŸ’…

We're performing a label mapping to translate a CIPSO bitmap into the correct local MLS category bitmap, using the given DOI definition. that's the whole job. net format in, local MLS categories out, everyone goes home happy. 🌈

Returns zero on success, negative values on failure. so like β€” 0 is the slay outcome, negatives are the 😭 outcome. no cap.

ngl, check your return value. zero means success. negative means it did not eat. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

okay this list is long β€” it's giving "the whole friend group showed up to the function." but every single one of them matters, so here we go, no skipping, periodt:

Kernel file ./net/ipv4/cipso_ipv4.c


and that's the page, bestie ✨🫢 β€” brought to you by the fine folks over at ./net/ipv4, dated October 2026, under the Kernel API Manual banner. go forth and map those categories, iykyk πŸ’–πŸŽ€

πŸ“¦ where this page comes from