pipapo_expand(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pipapo_expand(9) β€” like, the Kernel API Manual one, bestie ✨

okay so first thing: this is a section 9 page (kernel API manual, iykyk), and it's about pipapo_expand. she's a lil function with a big job and honestly? main character energy. let's get into it 🫢


🌸 NAME 🌸

pipapo_expand β€” expand to composing netmasks, insert into lookup table

like yes, that's the whole vibe. she expands a range into composing netmasks and then inserts the corresponding stuff into the lookup table. slay πŸ’…


✨ SYNOPSIS ✨

int pipapo_expand (struct nft_pipapo_field *f , const u8 *start , const
u8 *end , int len );

that's the signature, exactly as written, no notes πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • f β€” the field containing the lookup table πŸ’– like this is the container she's working in, bestie.
  • start β€” start of range. literally the beginning, no cap.
  • end β€” end of range. where the whole thing stops 🌈
  • len β€” length of value in bits. so like, measured in bits, not bytes, don't get it twisted ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she actually does: expand the range to composing netmasks, and insert the corresponding rule references in lookup buckets πŸŽ€

that's it. that's the job. she takes your range, breaks it down into composing netmasks, and drops the matching rule references into the lookup buckets. iconic behaviour, no notes πŸ’œ


⭐ RETURN ⭐

  • number of inserted rules on success πŸ’–
  • a negative error code on failure 😭 (the sad path, we don't love her but we respect her)

🧚 SEE ALSO 🧚

so there are, like, a lot of friends in this orbit. family reunion energy fr fr πŸ“

that's the whole group chat, everyone accounted for πŸ’€βœ¨


okay bye bestie, go read your netfilter source πŸŽ€ this page lives in ./net/netfilter, dated October 2026, and honestly? she ate. periodt πŸ’…πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from