calipso_skbuff_setattr(9)
π 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 π«Ά:
netlbl_calipso_ops_register(9)netlbl_calipso_add_pass(9)netlbl_calipso_add(9)netlbl_calipso_list(9)netlbl_calipso_listall_cb(9)netlbl_calipso_listall(9)netlbl_calipso_remove_cb(9)netlbl_calipso_remove(9)netlbl_calipso_genl_init(9)calipso_doi_add(9)calipso_doi_free(9)calipso_doi_remove(9)calipso_doi_getdef(9)calipso_doi_putdef(9)calipso_doi_walk(9)calipso_sock_getattr(9)calipso_sock_setattr(9)calipso_sock_delattr(9)calipso_req_setattr(9)calipso_req_delattr(9)calipso_optptr(9)calipso_getattr(9)calipso_skbuff_delattr(9)calipso_cache_invalidate(9)calipso_cache_add(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms