ENUM NFNL_HOOK_ATTRIBUTES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum nfnl_hook_attributes(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this is the page for enum nfnl_hook_attributes, and it's literally the netfilter hook netlink attributes situation. yes that's a mouthful, no I will not be shortening it πŸŽ€


✨ NAME ✨

enum nfnl_hook_attributes β€” netfilter hook netlink attributes πŸ¦‹


🌸 SYNOPSIS 🌸

enum nfnl_hook_attributes {
    NFNLA_HOOK_UNSPEC ,
    NFNLA_HOOK_HOOKNUM ,
    NFNLA_HOOK_PRIORITY ,
    NFNLA_HOOK_DEV ,
    NFNLA_HOOK_FUNCTION_NAME ,
    NFNLA_HOOK_MODULE_NAME ,
    NFNLA_HOOK_CHAIN_INFO ,
    __NFNLA_HOOK_MAX

};

like, that's the whole enum, no cap πŸ’–


πŸ‘‘ Constants πŸ‘‘

okay so here's the vibe check on every single one of these, and yes we're doing all of them 🫢

  • NFNLA_HOOK_UNSPEC β€” bestie, the original literally just says -- undescribed -- 😭 so that's all I got. it's the unspecified one. iconic in its mystery.
  • NFNLA_HOOK_HOOKNUM β€” the netfilter hook number, typed as NLA_U32 ✨
  • NFNLA_HOOK_PRIORITY β€” the netfilter hook priority, also NLA_U32 πŸ’…
  • NFNLA_HOOK_DEV β€” the netdevice name, and this one's NLA_STRING 🌸
  • NFNLA_HOOK_FUNCTION_NAME β€” the hook function name, NLA_STRING, slay πŸ¦‹
  • NFNLA_HOOK_MODULE_NAME β€” the kernel module that registered this hook, NLA_STRING β€” like, which module is the main character here πŸ‘‘
  • NFNLA_HOOK_CHAIN_INFO β€” basechain hook metadata, NLA_NESTED, and it's giving nested energy fr fr πŸŽ€
  • __NFNLA_HOOK_MAX β€” again with the -- undescribed -- πŸ™ˆ it's a mystery, we love that for it

πŸ”₯ SEE ALSO πŸ”₯

go look at the kernel file ./include/uapi/linux/netfilter/nfnetlink_hook.h β€” that's where all of this actually lives πŸ’œ

and then these other icons:

  • enum nfnl_hook_chain_info_attributes(9)
  • enum nfnl_hook_chaintype(9)
  • enum nfnl_hook_bpf_attributes(9)

okay that's the whole page, you ate that honestly 🌈 this came out of ./include/uapi/linux/netfilter and it's dated October 2026, so like, mark your calendars bestie β­πŸ’–

πŸ“¦ where this page comes from