get_mangled_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is get_mangled_key(9) from the Kernel API Manual πŸ’… and it does exactly what it says: mangles the key if a mangle act exists. That's the whole assignment, no cap 🫢

🌸 SYNOPSIS 🌸

void * get_mangled_key (struct flow_rule *rule , void *buf , u32 offset
, size_t key_sz , enum flow_action_mangle_base htype );

πŸŽ€ ARGUMENTS πŸŽ€

  • rule β€” the rule that carries the actions, like it's the main character holding the action bag πŸ‘œ
  • buf β€” pointer to the key that's getting mangled ✨
  • offset β€” used to adjust the mangled offset in the L2/L3/L4 header 🧚
  • key_sz β€” the key size, periodt πŸ“
  • htype β€” the mangling type, iykyk πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

It returns buf, which is where the mangled key stores. That's literally the whole glow-up: the return value is the buffer where the mangled key lives 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/net/ethernet/netronome/nfp/flower/conntrack.c πŸ“
  • get_hashentry(9) πŸ‘€

and for the cute sign-off: the page footer says source/version ./drivers/net/ethernet/netrono... and date October 2026 πŸ’œ

πŸ“¦ where this page comes from