calipso_skbuff_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… calipso_skbuff_setattr

okay so first things first, this is a section 9 kernel API page, bestie β€” that's the kernel-space manual, not your regular user commands. the whole thing lives in netlabel_calipso.c and it's all about stamping a CALIPSO option onto a packet. let's get into it πŸŽ€


✨ NAME ✨

calipso_skbuff_setattr β€” Set the CALIPSO option on a packet

like, literally that. it sets the CALIPSO option on a packet. the name ate and left no crumbs πŸ’…


🌸 SYNOPSIS 🌸

int calipso_skbuff_setattr (struct sk_buff *skb , const struct
       calipso_doi *doi_def , const struct netlbl_lsm_secattr *secattr );

three args, one int coming back at ya. that's the whole vibe check πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the packet. the packet. the main character of this whole function, honestly πŸ‘‘
  • doi_def β€” the CALIPSO DOI to use πŸŽ€
  • secattr β€” the security attributes ✨

🧚 DESCRIPTION 🧚

so what it does: it sets the CALIPSO option on the given packet, based on the security attributes. that's the assignment. that's the whole job 🫢

and then β€” okay this is the part where you just trust the page β€” on success it returns a pointer to the IP header, and on failure it returns NULL. yes, the signature up top says int and the description is out here talking about pointers and NULL. not me pointing it out πŸ’€ i'm just telling you what the manual says, fr fr. don't shoot the messenger πŸ™ˆ

lowkey important: NULL on failure means you should actually check it before you go dereferencing anything. be a responsible baddie πŸ”₯

🌈 SEE ALSO 🌈

the kernel file it lives in:

  • ./net/netlabel/netlabel_calipso.c

and the whole friend group 🫢:

that's the whole roster, no cap ✨


okay bye bestie, go set some attributes πŸ’œ β€” this page ships from ./net/netlabel, dated October 2026, and it's calipso_skbuff_setattr(9) all day every day πŸŽ€β­

πŸ“¦ where this page comes from