pipapo_drop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pipapo_drop(9) β€” the Kernel API Manual page, but make it make sense

okay so bestie, welcome to the Kernel API Manual, section 9 (that's the kernel-functions girlies 🌸). Today's main character is pipapo_drop β€” she deletes stuff, and honestly? she ate.


πŸ“› NAME

pipapo_drop β€” delete an entry from the lookup and mapping tables, given a rule map. that's it, that's the whole job 🫢


✨ SYNOPSIS

void pipapo_drop (struct nft_pipapo_match *m , union
nft_pipapo_map_bucket rulemap[] );

literally just those two things, no cap ✨


πŸŽ€ ARGUMENTS

  • m β€” the matching data. yep. that's the vibe. πŸ’–
  • rulemap β€” the table of rule maps: arrays of the first rule, plus the amount of rules in the next field that a given entry maps to, for each field. so it's like, a little itinerary of where everything lives πŸ—ΊοΈ

πŸ¦‹ DESCRIPTION

okay so picture this: for each rule in the lookup table buckets that map to this set of rules, we drop all the bits that are set in the lookup table mapping. slay, but also slightly unhinged energy πŸ”₯

in pictures β€” and yes, we're doing diagrams, stay with me β€” imagine we want to drop rules 0 and 1 from this lookup table:

       bucket group  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14
       15 0    0                                              1,2 1   1,2
       0 2    0                                      1,2 3    0
       1,2 4  0,1,2 5    0   1   2 6  0,1,2 1   1   1   1   1   1   1   1   1
       1   1   1   1   1   1 7   1,2 1,2  1   1   1  0,1  1   1   1   1   1   1
       1   1   1   1

so then rule 2 becomes rule 0, and the glow-up result is this:

       bucket group  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14
       15 0                                                    0 1    0 2
       0 3                                    0 4    0 5            0 6    0 7
       0   0

like... the way the numbers just renumber themselves? iconic. πŸ‘‘

and once that's done, you call unmap to drop all the corresponding rule references from the mapping tables. it's giving cleanup era, it's giving closure. periodt. πŸ’…


πŸ‘€ SEE ALSO

the whole friend group, fr fr β€” go say hi:


and that's the whole page, bestie!! this lil masterpiece lives in the <lavender>./net/netfilter</lavender> corner of the kernel, and the source/version + date stamp is <pink>October 2026</pink> πŸŽ€ go forth, drop those entries, and remember: the bits were set, and now they're not. no cap, iykyk πŸ’–βœ¨

πŸ“¦ where this page comes from