cipso_v4_gentag_rbm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cipso_v4_gentag_rbm(9) β€” from the Kernel API Manual, bestie πŸ’–

okay so real talk, this is a page straight out of the Kernel API Manual, and it's about making one (1) very specific little tag. stay with me, it's cute actually.


✨ NAME ✨

cipso_v4_gentag_rbm β€” generates a CIPSO restricted bitmap tag (tag type #1). that's it. that's the whole vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int cipso_v4_gentag_rbm (const struct cipso_v4_doi *doi_def ,
                         const struct netlbl_lsm_secattr *secattr ,
                         unsigned char *buffer ,
                         u32 buffer_len );

like, four things go in and an int comes out. slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • doi_def β€” the DOI definition. yes bestie, the DOI definition, not the DOI itself, keep up πŸ’–
  • secattr β€” the security attributes. the whole point of the operation lowkey.
  • buffer β€” the option buffer. this is where the tag gets written, main character energy.
  • buffer_len β€” length of buffer, and it's measured in bytes. not bits. bytes. iykyk.

🌸 DESCRIPTION 🌸

so what this function does is generate a CIPSO option using the restricted bitmap tag, tag type #1. iconic, honestly. πŸŽ€

here's the one thing you actually need to clock: the actual buffer length may be larger than the indicated size, and that's because of translation between the host and network category bitmaps. so don't come for it when the number doesn't line up, that's just the gig. 😭

  • returns the size of the tag on success πŸ’–
  • returns negative values on failure πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

okay this list is genuinely giving "everyone showed up to the party," and you will be respecting each and every one of them:

  • Kernel file: ./net/ipv4/cipso_ipv4.c

and the whole friend group:

no cap, that's the whole guest list. 🫢


and that's the page, bestie!! this little icon dropped from ./net/ipv4 back in October 2026 β€” catch you in the next manpage, mwah πŸ’‹βœ¨πŸ“

πŸ“¦ where this page comes from