calipso_opt_del(9)
π calipso_opt_del(9) β the Kernel API Manual page, bestie edition
okay so this is calipso_opt_del, straight out of the section 9 Kernel API Manual, and it's literally the glow-up artist for IPv6 option headers π¦ she takes your header and β¨ removes the CALIPSO option β¨ no cap.
πΈ NAME πΈ
calipso_opt_del β removes the CALIPSO option from an option header. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
int calipso_opt_del (struct ipv6_opt_hdr *hop , struct ipv6_opt_hdr
**new );
like... yes, the **new is double-starred, that's not a typo, she's passing back a pointer to a pointer, main character energy fr fr π
π ARGUMENTS π
hopβ the original header. the before pic πΈnewβ the new header. the after pic π
π DESCRIPTION π
so the way that this works: she creates a new header based on hop without any CALIPSO option in it. iconic behaviour, honestly.
now for the vibe check on what she returns, because there are three whole moods:
- if
hopdoesn't contain a CALIPSO option, she returns-ENOENTβ like, girl, there's nothing to delete, nothing is giving CALIPSO π - if
hopcontains no other non-padding options, she returns zero withnewset toNULL. so, zero return, null result, a whole clean slate π«Ά - otherwise she returns zero, creates a new header without the CALIPSO option (and removing as much padding as possible β yes, she's tidying up too, so thoughtful πΈ) and you come back with
newset to that header β¨
lowkey important:newcan literally end upNULLon that middle case, so don't go dereferencing it without checking first π
π SEE ALSO π
Kernel file ./net/ipv6/calipso.c
calipso_cache_entry_free(9)calipso_map_cache_hash(9)calipso_cache_init(9)calipso_cache_invalidate(9)calipso_cache_check(9)calipso_cache_add(9)calipso_doi_search(9)calipso_doi_add(9)calipso_doi_free(9)calipso_doi_free_rcu(9)calipso_doi_remove(9)calipso_doi_getdef(9)calipso_doi_putdef(9)calipso_doi_walk(9)calipso_validate(9)calipso_map_cat_hton(9)calipso_map_cat_ntoh(9)calipso_pad_write(9)calipso_genopt(9)calipso_opt_update(9)calipso_tlv_len(9)calipso_opt_find(9)calipso_opt_insert(9)calipso_opt_getattr(9)calipso_sock_getattr(9)calipso_sock_setattr(9)calipso_sock_delattr(9)calipso_req_setattr(9)calipso_req_delattr(9)calipso_skbuff_optptr(9)calipso_skbuff_setattr(9)calipso_skbuff_delattr(9)calipso_init(9)
like, that's the whole calipso friend group and they all ate π π₯
and that's the page, bestie π it lives in ./net/ipv6 and this version is dated October 2026 β go forth and delete those options, you've got this π«Άβ¨
π¦ 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