ENUM NFNL_HOOK_CHAINTYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum nfnl_hook_chaintype(9) β€” the Kernel API Manual, bestie edition

Okay so picture this: you're deep in the kernel, you're poking at netfilter hooks, and you hit this little enum. It's literally just "chain type" β€” that's the whole NAME, no notes. chain type. Short, sweet, iconic. πŸŽ€

This page lives in section 9 of the Kernel API Manual, so yeah, it's kernel-internals territory β€” bring snacks. πŸ“


✨ SYNOPSIS ✨

Here's the whole shape of it, exactly as it's declared:

enum nfnl_hook_chaintype {
    NFNL_HOOK_TYPE_NFTABLES ,
    NFNL_HOOK_TYPE_BPF ,
    NFNL_HOOK_TYPE_NFT_FLOWTABLE

};

Three constants, all up in there, and the vibes are immaculate. Let's meet them πŸ’–


🌸 Constants 🌸

  • NFNL_HOOK_TYPE_NFTABLES β€” this one's the nf_tables base chain, the main character of the chain world πŸ‘‘
  • NFNL_HOOK_TYPE_BPF β€” and this one's a bpf program, doing its own little eBPF thing πŸ¦‹
  • NFNL_HOOK_TYPE_NFT_FLOWTABLE β€” last but not least, an nf_tables flowtable, the flow-y one 🌈

That's the roster. Three. No cap, no extra members hiding in the back. πŸ’€


πŸ‘€ SEE ALSO πŸ‘€

Go touch some related grass, iykyk:

  • The kernel file ./include/uapi/linux/netfilter/nfnetlink_hook.h β€” that's where the enum actually lives, so go say hi 🫢
  • enum nfnl_hook_attributes(9)
  • enum nfnl_hook_chain_info_attributes(9)
  • enum nfnl_hook_bpf_attributes(9)

Fr fr, this page doesn't give you any extra behaviour notes or danger warnings β€” it's just the constants and where to find them. Don't go inventing semantics that aren't printed here, bestie. πŸ’…

And that's a wrap! 🧚 This little gem comes to you from ./include/uapi/linux/netfilter, dated October 2026, and it's the enum nfnl_hook_chaintype(9) page absolutely serving. Obsessed. Slay. Periodt. β­πŸ’œ

πŸ“¦ where this page comes from