nf_ct_iterate_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ nf_ct_iterate_destroy(9) πŸ‘‘

okay so welcome to the Kernel API Manual, bestie πŸ’–. This page is all about nf_ct_iterate_destroy, and it’s lowkey giving β€œcleanup era” energy: destroy unconfirmed conntracks and iterate table. Let’s get into it, no cap.


🌸 NAME 🌸

nf_ct_iterate_destroy β€” destroy unconfirmed conntracks and iterate table.

✨ SYNOPSIS ✨

void nf_ct_iterate_destroy (int (*iter)(struct nf_conn *i, void *data) ,
       void *data );

πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” callback to invoke for each conntrack. It’s literally the function that gets called for every conntrack, iykyk.
  • data β€” data to pass to iter. The little payload that rides along with the callback.

πŸ’… DESCRIPTION πŸ’…

It’s like nf_ct_iterate_cleanup, but first it marks conntracks on the unconfirmed list as dying (so they will not be inserted into main table). Very β€œclean up before the main character entrance” energy, honestly.

🚨 Warning, bestie: it can only be called in module exit path. That’s the rule. No cap.

πŸ”₯ SEE ALSO πŸ”₯


πŸ’– and that’s the page! cute sign-off time: this one lives in the Kernel API Manual as nf_ct_iterate_destroy(9), with footer source/version ./net/netfilter, date October 2026, and title nf_ct_iterate_destroy(9). bye bestie, go slay those conntracks 🫢✨

πŸ“¦ where this page comes from