cipso_v4_genopt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cipso_v4_genopt(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the kernel API manual for cipso_v4_genopt β€” yes that's the real title, I'm not making it up, it's literally the header of this page 🫢


✨ NAME ✨

cipso_v4_genopt β€” Generate a CIPSO option πŸŽ€


🌸 SYNOPSIS 🌸

int cipso_v4_genopt (unsigned char *buf , u32 buf_len , const struct
cipso_v4_doi *doi_def , const struct netlbl_lsm_secattr *secattr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • buf β€” the option buffer ✨ like, this is where the option goes
  • buf_len β€” the size of opt_buf πŸ’… (yes, the page says opt_buf, and I'm not gonna lie to you and change it)
  • doi_def β€” the CIPSO DOI to use πŸŽ€
  • secattr β€” the security attributes πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

So here's the vibe: this function generates a CIPSO option using the DOI definition and the security attributes you pass in. It's giving "assemble the thing from the pieces you handed me" energy, no cap πŸ’–

Returns the length of the option on success, and negative values on failure 😭 so like, check your return value, bestie. Periodt.

ngl, negative numbers means something went wrong β€” don't sleep on that.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./net/ipv4/cipso_ipv4.c and its whole friend group β€” every single one, because we don't do "and others" here 🌈


and that's the whole page, bestie πŸ’… before you go β€” cute lil sign-off: this cutie lives in ./net/ipv4, dated October 2026, and the footer's API tag is cipso_v4_genopt(9) ✨ πŸ¦‹ mwah, go read some source code πŸ’–

πŸ“¦ where this page comes from