cipso_v4_gentag_hdr(9)
β¨ cipso_v4_gentag_hdr β¨
okay bestie, so this is a page from the Kernel API Manual (section 9, the kernel-functions girlies π
) and it's all about cipso_v4_gentag_hdr β the little function that builds you a CIPSO option header. yes it's niche. yes it's iconic. let's get into it π«Ά
πΈ NAME πΈ
cipso_v4_gentag_hdr β generate a CIPSO option header. that's it. that's the whole vibe. β¨
π SYNOPSIS π
void cipso_v4_gentag_hdr (const struct cipso_v4_doi *doi_def , unsigned
char *buf , u32 len );
literally a void function, so it returns nothing β it just does the thing and dips π
π ARGUMENTS π
doi_defβ the DOI definition. like, the whole domain-of-interpretation situation, handed to you as aconst struct cipso_v4_doi *. no cap, this is the important context ποΈbufβ the CIPSO option buffer. this is theunsigned char *where the actual bytes live. hold it gently π₯Ίlenβ the total tag length in bytes, not including this header. super important: it's the tag length sans header. not me almost forgetting that detail π
π¦ DESCRIPTION π¦
Write a CIPSO header into the beginning of buffer. that's the assignment, that's the whole assignment. it writes the header, at the start of buf, done and dusted. main character energy from a tiny function honestly π
π SEE ALSO π
the whole extended friend group, in the kernel file ./net/ipv4/cipso_ipv4.c:
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_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)
that's a lot of siblings bestie, and every single one of them is invited ππ
okayyy and that's the page!! π§ this lil manual entry lives under ./net/ipv4 and the version/date situation on the footer is October 2026 β so yeah, she's future-dated and thriving. go write that header, bestie, you're gonna slay π
β
π¦ 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