cipso_v4_parsetag_rng(9)
π cipso_v4_parsetag_rng(9) β the Kernel API Manual moment π
okay bestie, so this is a page from the Kernel API Manual and it's literally all about one little function that reads a CIPSO ranged tag. it's giving "niche but iconic" energy, and honestly? we're obsessed. let's get into it β¨
β¨ NAME β¨
cipso_v4_parsetag_rng β Parse a CIPSO ranged tag πΈ
π¦ SYNOPSIS π¦
int cipso_v4_parsetag_rng (const struct cipso_v4_doi *doi_def , const
unsigned char *tag , struct netlbl_lsm_secattr *secattr );
like, yes, that's the whole signature. she's a three-argument queen π
π ARGUMENTS π
doi_defβ the DOI definition. that's her whole identity, do not question it πtagβ the CIPSO tag. the actual thing we're parsing, main character energy fr frsecattrβ the security attributes. this is where the parsed goodies get dropped off π
π DESCRIPTION π
so the vibe here is: we take a CIPSO ranged tag (and yes bestie, that's tag type #5, iykyk) and we parse it, then we hand back the security attributes in secattr. π«Ά
and what does she return? okay so:
- returns zero on success β¨ (slay)
- returns negative values on failure π (not slay, but we respect the honesty)
that's it. that's the whole function. short and iconic, periodt. π
π₯ SEE ALSO π₯
okay so there are a LOT of siblings in the kernel file ./net/ipv4/cipso_ipv4.c β like this is a whole family reunion and everyone showed up. no cap. here's the full guest list, every single one, not skipping anybody:
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_map_cat_rng_ntoh(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_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)
like, that's the whole group chat. every single one. π
and just so we're clear:cipso_v4_parsetag_rngis the ranged tag parser,cipso_v4_gentag_rng(9)is the one that generates it. don't mix them up bestie, that's a vibe check fail π
anywayyy, that's the page! this little beauty lives over in ./net/ipv4 and the doc is dated October 2026 β shoutout to the <cyan>Kernel API Manual</cyan> for keeping us fed with lore. go parse something cute today π§ππ
π¦ 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