ENUM NFNL_HOOK_CHAINTYPE(9)
π 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 thenf_tablesbase chain, the main character of the chain world πNFNL_HOOK_TYPE_BPFβ and this one's abpfprogram, doing its own little eBPF thing π¦NFNL_HOOK_TYPE_NFT_FLOWTABLEβ last but not least, annf_tablesflowtable, 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
- 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