calipso_map_cat_ntoh(9)
π¦ CALIPSO category mapping: network β host, bestie edition π¦
okay so calipso_map_cat_ntoh(9) is from the Kernel API Manual, and it is literally here to do one glow-up: take a CALIPSO category bitmap and map it from network vibes into host vibes. no cap. π
πΈ NAME πΈ
calipso_map_cat_ntoh β Perform a category mapping from network to host β¨
β¨ SYNOPSIS β¨
int calipso_map_cat_ntoh (const struct calipso_doi *doi_def , const
unsigned char *net_cat , u32 net_cat_len , struct netlbl_lsm_secattr
*secattr );
π ARGUMENTS π
doi_defβ the DOI definition π«Άnet_catβ the category bitmap in network/CALIPSO format πnet_cat_lenβ the length of the CALIPSO bitmap in bytes πsecattrβ the security attributes π
π DESCRIPTION π
Okay so this function does a label mapping: it translates a CALIPSO bitmap into the correct local MLS category bitmap, using the given DOI definition. Returns zero on success, negative values on failure. Thatβs the whole vibe check β zero means slay, negative values mean nope π
π₯ SEE ALSO π₯
Kernel file ./net/ipv6/calipso.c, plus calipso_cache_entry_free(9), calipso_map_cache_hash(9), calipso_cache_init(9), calipso_cache_invalidate(9), calipso_cache_check(9), calipso_cache_add(9), calipso_doi_search(9), calipso_doi_add(9), calipso_doi_free(9), calipso_doi_free_rcu(9), calipso_doi_remove(9), calipso_doi_getdef(9), calipso_doi_putdef(9), calipso_doi_walk(9), calipso_validate(9), calipso_map_cat_hton(9), calipso_pad_write(9), calipso_genopt(9), calipso_opt_update(9), calipso_tlv_len(9), calipso_opt_find(9), calipso_opt_insert(9), calipso_opt_del(9), calipso_opt_getattr(9), calipso_sock_getattr(9), calipso_sock_setattr(9), calipso_sock_delattr(9), calipso_req_setattr(9), calipso_req_delattr(9), calipso_skbuff_optptr(9), calipso_skbuff_setattr(9), calipso_skbuff_delattr(9), calipso_init(9) π
π source/version is./net/ipv6, date isOctober 2026, and this wascalipso_map_cat_ntoh(9)β mwah, bestie, go map those categories π
π¦ 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