cipso_v4_map_cat_rng_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 cipso_v4_map_cat_rng_valid(9) 🌸

okay so this one's from the Kernel API Manual, section 9, and it's basically the vibe check for CIPSO categories πŸ’… like before you let a category list through the door, this function peeks at it and goes "mmm, valid or not?" β€” no cap.


✨ NAME ✨

cipso_v4_map_cat_rng_valid β€” checks to see if the categories are valid πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int cipso_v4_map_cat_rng_valid (const struct cipso_v4_doi *doi_def ,
const unsigned char *rngcat , u32 rngcat_len );

πŸ“ ARGUMENTS πŸ“

  • doi_def β€” the DOI definition πŸ‘‘ like the rulebook you're checking against
  • rngcat β€” category list, the actual list of categories under review πŸ“‹
  • rngcat_len β€” length of the category list in bytes, so we know how far to read πŸ”’

πŸ’œ DESCRIPTION πŸ’œ

Checks the given categories against the given DOI definition, bestie. That's the whole gig.

And the return value is giving main character energy:

  • returns a negative value if any of the categories do not have a valid mapping 😭
  • returns a zero value if all of the categories are valid βœ… slay
fr fr, that's the entire contract β€” negative means "nope, at least one category is unmapped", zero means "all good, we're so back".

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/ipv4/cipso_ipv4.c β€” and honestly the whole CIPSO friend group is here, so let me introduce you πŸ’–

iykyk 🫢 go read them, they're iconic.


okay that's the whole page, mwah πŸ’‹ this came out of ./net/ipv4 and it's dated October 2026 β€” periodt, that's the sign-off, bestie, go validate some categories ✨

πŸ“¦ where this page comes from