cipso_v4_map_cat_rng_ntoh(9)
π cipso_v4_map_cat_rng_ntoh β the kernel API manual, bestie edition
okay so bestie, imagine this page lives in the Kernel API Manual, and today's main character is cipso_v4_map_cat_rng_ntoh. yes that name is a mouthful, no we are not shortening it, it's iconic and we respect it π
β¨ NAME β¨
cipso_v4_map_cat_rng_ntoh β literally does a category mapping, but likeβ¦ from network to host. that's the whole vibe. π¦
π«Ά SYNOPSIS π«Ά
int cipso_v4_map_cat_rng_ntoh (const struct cipso_v4_doi *doi_def ,
const unsigned char *net_cat , u32 net_cat_len , struct
netlbl_lsm_secattr *secattr );
she takes four things and returns an int, periodt. π
π ARGUMENTS π
doi_defβ the DOI definition. that's her whole reference point, the blueprint, the source of truth β¨net_catβ the category list in network/CIPSO format. i.e. the data still dressed in its network-format little outfit πΈnet_cat_lenβ the length of the CIPSO bitmap in bytes. yes, bytes, note it, write it down πsecattrβ the security attributes. this is where the mapped result is headed π§
π DESCRIPTION π
so what she actually does is perform a label mapping β translating a CIPSO category list into the correct local MLS category bitmap, using the DOI definition you handed her. like a translator but for categories, no cap π
and the return situation? she returns zero on success, and negative values on failure. that's it, that's the contract, don't @ me. π
π¦ SEE ALSO π¦
bestie there are SO many siblings, okay, they all live in the kernel file ./net/ipv4/cipso_ipv4.c β here's the full family scroll, not skipping a single one π«Ά
cipso_v4_cache_entry_free(9)cipso_v4_map_cache_hash(9)cipso_v4_cache_init(9)cipso_v4_cache_invalidate(9)cipso_v4_cache_check(9)cipso_v4_cache_add(9)cipso_v4_doi_search(9)cipso_v4_doi_add(9)cipso_v4_doi_free(9)cipso_v4_doi_free_rcu(9)cipso_v4_doi_remove(9)cipso_v4_doi_getdef(9)cipso_v4_doi_putdef(9)cipso_v4_doi_walk(9)cipso_v4_map_lvl_valid(9)cipso_v4_map_lvl_hton(9)cipso_v4_map_lvl_ntoh(9)cipso_v4_map_cat_rbm_valid(9)cipso_v4_map_cat_rbm_hton(9)cipso_v4_map_cat_rbm_ntoh(9)cipso_v4_map_cat_enum_valid(9)cipso_v4_map_cat_enum_hton(9)cipso_v4_map_cat_enum_ntoh(9)cipso_v4_map_cat_rng_valid(9)cipso_v4_map_cat_rng_hton(9)cipso_v4_gentag_hdr(9)cipso_v4_gentag_rbm(9)cipso_v4_parsetag_rbm(9)cipso_v4_gentag_enum(9)cipso_v4_parsetag_enum(9)cipso_v4_gentag_rng(9)cipso_v4_parsetag_rng(9)cipso_v4_gentag_loc(9)cipso_v4_parsetag_loc(9)cipso_v4_optptr(9)cipso_v4_validate(9)cipso_v4_error(9)cipso_v4_genopt(9)cipso_v4_sock_setattr(9)cipso_v4_req_setattr(9)cipso_v4_delopt(9)cipso_v4_sock_delattr(9)cipso_v4_req_delattr(9)cipso_v4_getattr(9)cipso_v4_sock_getattr(9)cipso_v4_skbuff_setattr(9)cipso_v4_skbuff_delattr(9)cipso_v4_init(9)
ok and one little lore drop before you go: this page comes from the kernel file./net/ipv4/cipso_ipv4.c, the source is./net/ipv4, and the date on it is October 2026. so like, future-core of the kernel API manual πΈ
and that's the whole page, bestie β you ate it up, i'm obsessed, mwah ππ
π¦ 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