cipso_v4_map_cache_hash(9)
π cipso_v4_map_cache_hash(9)
okay so bestie, welcome to the cipso_v4_map_cache_hash club β this is a page straight out of the Kernel API Manual, and honestly? it's a little one. a tiny icon. a single-purpose queen. let's get into it β¨
πΈ NAME πΈ
cipso_v4_map_cache_hash β literally just the hashing function for the CIPSO cache. that's the whole job. that's her whole personality π
π¦ SYNOPSIS π¦
u32 cipso_v4_map_cache_hash (const unsigned char *key , u32 key_len );
yeah. two arguments, one u32 coming back at you. clean, minimal, no drama π
β¨ ARGUMENTS β¨
keyβ the hash key. the actual bytes going into the blender πkey_lenβ the length of the key, and yes it's measured in bytes. count 'em correctly, bestie, no cap π
π₯ DESCRIPTION π₯
okay so here's the tea: this is the CIPSO tag hashing function. you hand it a key, it does its little hash dance, and it returns a 32-bit hash value. that's it. that's the whole vibe check. slay π
no hidden behaviour, no surprise side quests β the manual says exactly this and nothing more, and I'm not about to invent lore for you π«Ά
π SEE ALSO π
the friend group is huge, so buckle up. this whole crew lives in the kernel file ./net/ipv4/cipso_ipv4.c:
cipso_v4_cache_entry_free(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_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)
like I said. big friend group. main character energy all around π
and that's the page!! mwah π this lil doc came from ./net/ipv4, dated October 2026 β so go forth, hash responsibly, and remember: 32 bits, no more, no less. periodt π§ββοΈβ¨
π¦ 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