calipso_validate(9)
π calipso_validate(9): validate a CALIPSO option π
okay so this one lives in the Kernel API Manual, section 9, and it's literally the vibe check for a CALIPSO option. π¦ no cap, it's a tiny yes/no bouncer.
π NAME π
calipso_validate β Validate a CALIPSO option. periodt. β¨
β¨ SYNOPSIS β¨
bool calipso_validate (const struct sk_buff *skb , const unsigned char
*option );
π ARGUMENTS π
skbβ the packet. like, the actual packet, bestie. π¦optionβ the start of the option. that's the pointer to where the option begins. π―
π¦ DESCRIPTION π¦
This routine is called to validate a CALIPSO option. If the option is valid then true is returned, otherwise false is returned. it's giving boolean bouncer energy. π
β οΈ bestie, the caller should have already checked that the length of the option (including the TLV header) is >= 10 and that the catmap length is consistent with the option length. that's on you, not this function. π«Ά
We leave checks on the level and categories to the socket layer. yup, socket layer's problem now. π
π SEE ALSO π
Kernel file ./net/ipv6/calipso.c, plus the whole calipso squad:
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_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_del(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)
π§ source/version: ./net/ipv6 Β· date: October 2026 Β· page: calipso_validate(9) β ok bye, go validate responsibly π
π¦ 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