cipso_v4_req_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

cipso_v4_req_setattr β€” bestie, this is the one that adds a CIPSO option to a connection request socket ✨

(also hi, this page lives in the Kernel API Manual, so you already know it's kernel-tier πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

int cipso_v4_req_setattr (struct request_sock *req , const struct
cipso_v4_doi *doi_def , const struct netlbl_lsm_secattr *secattr );

πŸŽ€ ARGUMENTS πŸŽ€

  • req β€” the connection request socket, like the actual socket-in-progress we're doing all this for 🫢
  • doi_def β€” the CIPSO DOI to use, this is the definition, the blueprint, the moment πŸ‘‘
  • secattr β€” the specific security attributes of the socket, i.e. the lore 🌈

πŸ’– DESCRIPTION πŸ’–

Okay so what this does: it sets the CIPSO option on the given socket, using the DOI definition and the security attributes you passed in. Both. Together. Iconic teamwork fr fr πŸ’…

And the return value? Zero on success β€” slay β€” and negative values on failure, which is your little sign that it did not, in fact, eat 😭


⭐ SEE ALSO ⭐

Kernel file ./net/ipv4/cipso_ipv4.c β€” and ngl, the friend group here is huge, so buckle up buttercup πŸ¦‹:


Okay that's the whole page, you ate that πŸ“ Mwah πŸ’‹ β€” this cutie came out of ./net/ipv4, dated October 2026, and it's filed under cipso_v4_req_setattr(9). Byeee, ily, go read your kernel source πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from