pipapo_map(9)
π NAME
okay so bestie, pipapo_map is literally the function that inserts rules in mapping tables, mapping them between fields. that's it, that's the whole gig β she takes ya rules and files them into the mapping table, field by field. no cap. π
β¨ SYNOPSIS
void pipapo_map (struct nft_pipapo_match *m , union
nft_pipapo_map_bucket map[NFT_PIPAPO_MAX_FIELDS] , struct
nft_pipapo_elem *e );
she returns void β no little return value to obsess over, she just does the thing. icon behavior honestly. β
π¦ ARGUMENTS
mβ the matching data, and yes the mapping table is chillin' inside her too. she's the whole package, not just one thing πmapβ the table of rule maps: an array of the first rule and the amount of rules in the next field that a given rule maps to, for each field. that's the max,NFT_PIPAPO_MAX_FIELDSworth of entries β one little map-y bucket per field πΊοΈβ¨eβ for the last field, this is thenft_set_extpointer that the matching rules map to. she only shows up at the end, main character energy fr π
π SEE ALSO
like, go read all of these, i'm not kidding, they're all connected:
- the kernel file
./net/netfilter/nft_set_pipapo.c+Theory of Operation(9)β start here bestie, it's the lore π₯ pipapo_refill(9)pipapo_get_slow(9)pipapo_get(9)nft_pipapo_lookup(9)nft_pipapo_get(9)pipapo_realloc_mt(9)lt_calculate_size(9)pipapo_resize(9)pipapo_bucket_set(9)pipapo_lt_4b_to_8b(9)pipapo_lt_8b_to_4b(9)pipapo_lt_bits_adjust(9)pipapo_insert(9)pipapo_step_diff(9)pipapo_step_after_end(9)pipapo_base_sum(9)pipapo_expand(9)pipapo_free_scratch(9)pipapo_realloc_scratch(9)pipapo_maybe_clone(9)nft_pipapo_insert(9)pipapo_clone(9)pipapo_rules_same_key(9)pipapo_unmap(9)pipapo_drop(9)pipapo_gc_scan(9)pipapo_gc_queue(9)pipapo_free_fields(9)pipapo_reclaim_match(9)nft_pipapo_commit(9)nft_pipapo_activate(9)nft_pipapo_deactivate(9)nft_pipapo_flush(9)pipapo_get_boundaries(9)pipapo_match_field(9)nft_pipapo_remove(9)nft_pipapo_do_walk(9)nft_pipapo_walk(9)nft_pipapo_privsize(9)nft_pipapo_estimate(9)nft_pipapo_init(9)nft_set_pipapo_match_destroy(9)nft_pipapo_destroy(9)nft_pipapo_gc_init(9)
ngl if you got here by grepping the source, you're already doing amazing β this one lives in ./net/netfilter and it's October 2026 energy, so go be a kernel girlie π«Ά
πΈ mwah, that's the whole page, go insert some rules bestie π
π¦ 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