cipso_v4_map_lvl_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cipso_v4_map_lvl_valid(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes this is a real function from the kernel, no I'm not kidding, and yes it's giving "small but crucial" main character energy. Let's get into it 🫢


🌸 NAME 🌸

cipso_v4_map_lvl_valid β€” Checks to see if the given level is understood πŸ’–


✨ SYNOPSIS ✨

int cipso_v4_map_lvl_valid (const struct cipso_v4_doi *doi_def , u8
level );

literally that's the whole vibe check right there πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • doi_def β€” the DOI definition πŸ‘‘ (yes, that is the actual name, we don't make the rules)
  • level β€” the level to check πŸ¦‹ (the one on trial, the one being inspected)

πŸ’œ DESCRIPTION πŸ’œ

So here's what's happening 🌈 β€” this function checks the given level against the given DOI definition πŸ“ and then gives you a verdict:

  • it returns a negative value if the level does not have a valid mapping πŸ’€ (not invited to the party)
  • it returns a zero value if the level is defined by the DOI ✨ (invited, valid, slay)

that's literally it, that's the whole function, and honestly? iconic πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/ipv4/cipso_ipv4.c πŸ’« and like, the entire friend group:

cipso_v4_cache_entry_free(9), cipso_v4_map_cache_hash(9), cipso_v4_cache_init(9), cipso_v4_cache_invalidate(9), cipso_v4_cache_check(9), cipso_v4_cache_add(9), cipso_v4_doi_search(9), cipso_v4_doi_add(9), cipso_v4_doi_free(9), cipso_v4_doi_free_rcu(9), cipso_v4_doi_remove(9), cipso_v4_doi_getdef(9), cipso_v4_doi_putdef(9), cipso_v4_doi_walk(9), cipso_v4_map_lvl_hton(9), cipso_v4_map_lvl_ntoh(9), cipso_v4_map_cat_rbm_valid(9), cipso_v4_map_cat_rbm_hton(9), cipso_v4_map_cat_rbm_ntoh(9), cipso_v4_map_cat_enum_valid(9), cipso_v4_map_cat_enum_hton(9), cipso_v4_map_cat_enum_ntoh(9), cipso_v4_map_cat_rng_valid(9), cipso_v4_map_cat_rng_hton(9), cipso_v4_map_cat_rng_ntoh(9), cipso_v4_gentag_hdr(9), cipso_v4_gentag_rbm(9), cipso_v4_parsetag_rbm(9), cipso_v4_gentag_enum(9), cipso_v4_parsetag_enum(9), cipso_v4_gentag_rng(9), cipso_v4_parsetag_rng(9), cipso_v4_gentag_loc(9), cipso_v4_parsetag_loc(9), cipso_v4_optptr(9), cipso_v4_validate(9), cipso_v4_error(9), cipso_v4_genopt(9), cipso_v4_sock_setattr(9), cipso_v4_req_setattr(9), cipso_v4_delopt(9), cipso_v4_sock_delattr(9), cipso_v4_req_delattr(9), cipso_v4_getattr(9), cipso_v4_sock_getattr(9), cipso_v4_skbuff_setattr(9), cipso_v4_skbuff_delattr(9), cipso_v4_init(9) 😭 that's a lot of besties but we love them all equally 🫢


ngl bestie, if you're reading this at 3am debugging netlabel stuff, drink some water and remember: negative means no mapping, zero means valid. periodt πŸ’…

so yeah, this cutie lives in ./net/ipv4 and the version is October 2026 πŸ“… β€” that's the whole page, mwah, go read your kernel source, ily bye πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from