nf_nat_used_tuple_new(9)
π nf_nat_used_tuple_new(9) β from the Kernel API Manual bestie β¨
okay so picture this: it's giving conntrack gatekeeping era, and this little function is the bouncer at the door π
β¨ NAME β¨
nf_nat_used_tuple_new β the vibe check that tells you whether a to-be-inserted conntrack is about to collide with an existing entry π₯
πΈ SYNOPSIS πΈ
bool nf_nat_used_tuple_new (const struct nf_conntrack_tuple *tuple ,
const struct nf_conn *ignored_ct );
like yes bestie it returns a bool, we love a yes-or-no icon π
π¦ ARGUMENTS π¦
tupleβ the proposed NAT binding, i.e. the fit we're trying to serve π₯ignored_ctβ our own (unconfirmed) conntrack entry, the one we're lowkey side-eyeing past π
π DESCRIPTION π
So it's literally the same as nf_nat_used_tuple, except it also checks for that rare clash in the reverse direction π«Ά no cap, that's the whole tea.
β οΈ Heads up bestie: this should only be called whentuplehas not been altered β meaningignored_conntrackwill not be subject to NAT. Do not come for this function's wig by calling it at the wrong moment, fr fr π
β RETURN β
Returns true if the proposed NAT mapping collides with an existing entry π (and by implication, not-true when it's all clear π).
π SEE ALSO π
- Kernel file
./net/netfilter/nf_nat_core.c nf_nat_used_tuple(9)
mwah π that's the whole page, stream it, screenshot it, send it to the group chat β this one came straight from the kernel tree at ./net/netfilter, dated October 2026, and it slayed β¨ππ
π¦ 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