ENUM NFT_META_ATTRIBUTES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to enum nft_meta_attributes(9) β€” yes that's the whole title, and yes it's from the Kernel API Manual, section 9, no cap. This is the netlink attribute enum for the nf_tables meta expression, and we're gonna read it together like it's the group chat πŸ’…


🌸 NAME 🌸

enum nft_meta_attributes β€” nf_tables meta expression netlink attributes ✨


✨ SYNOPSIS ✨

enum nft_meta_attributes {
    NFTA_META_UNSPEC ,
    NFTA_META_DREG ,
    NFTA_META_KEY ,
    NFTA_META_SREG ,
    __NFTA_META_MAX

};

like, that's the whole struct, and it is giving "short but iconic" πŸŽ€


πŸ’… CONSTANTS πŸ’…

the constants are literally the main character here, so let's go one by one 🫢

  • NFTA_META_UNSPEC β€” the source just hits you with -- undescribed -- 😭 that's it, that's the description, we know nothing and we respect it
  • NFTA_META_DREG β€” the destination register, typed NLA_U32 🎯
  • NFTA_META_KEY β€” the meta data item to load, and it's an NLA_U32, specifically a nft_meta_keys situation, iykyk πŸ”₯
  • NFTA_META_SREG β€” the source register, also NLA_U32 πŸ“₯
  • __NFTA_META_MAX β€” another -- undescribed -- bestie, the lore is simply not there πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

first up, the kernel file itself, and yes it's exactly this:

Kernel file ./include/uapi/linux/netfilter/nf_tables.h enum

then the whole extended friend group of enums, and we are not skipping a single one, bestie, not one πŸ‘‘

  • nft_registers(9)
  • nft_verdicts(9)
  • nf_tables_msg_types(9)
  • nft_list_attributes(9)
  • nft_hook_attributes(9)
  • nft_table_flags(9)
  • nft_table_attributes(9)
  • nft_chain_attributes(9)
  • nft_rule_attributes(9)
  • nft_rule_compat_flags(9)
  • nft_rule_compat_attributes(9)
  • nft_set_flags(9)
  • nft_set_policies(9)
  • nft_set_desc_attributes(9)
  • nft_set_field_attributes(9)
  • nft_set_attributes(9)
  • nft_set_elem_flags(9)
  • nft_set_elem_attributes(9)
  • nft_set_elem_list_attributes(9)
  • nft_data_types(9)
  • nft_data_attributes(9)
  • nft_verdict_attributes(9)
  • nft_expr_attributes(9)
  • nft_immediate_attributes(9)
  • nft_bitwise_ops(9)
  • nft_bitwise_attributes(9)
  • nft_byteorder_ops(9)
  • nft_byteorder_attributes(9)
  • nft_cmp_ops(9)
  • nft_cmp_attributes(9)
  • nft_range_ops(9)
  • nft_range_attributes(9)
  • nft_lookup_attributes(9)
  • nft_dynset_attributes(9)
  • nft_payload_bases(9)
  • nft_payload_csum_types(9)
  • nft_payload_attributes(9)
  • nft_exthdr_op(9)
  • nft_exthdr_attributes(9)
  • nft_meta_keys(9)
  • nft_rt_keys(9)
  • nft_hash_types(9)
  • nft_hash_attributes(9)
  • nft_rt_attributes(9)
  • nft_socket_attributes(9)
  • nft_ct_keys(9)
  • nft_ct_attributes(9)
  • nft_offload_attributes(9)
  • nft_limit_attributes(9)
  • nft_connlimit_attributes(9)
  • nft_counter_attributes(9)
  • nft_last_attributes(9)
  • nft_log_attributes(9)
  • nft_log_level(9)
  • nft_queue_attributes(9)
  • nft_quota_attributes(9)
  • nft_secmark_attributes(9)
  • nft_reject_types(9)
  • nft_reject_inet_code(9)
  • nft_reject_attributes(9)
  • nft_nat_types(9)
  • nft_nat_attributes(9)
  • nft_tproxy_attributes(9)
  • nft_masq_attributes(9)
  • nft_redir_attributes(9)
  • nft_dup_attributes(9)
  • nft_fwd_attributes(9)
  • nft_objref_attributes(9)
  • nft_gen_attributes(9)
  • nft_object_attributes(9)
  • nft_flowtable_flags(9)
  • nft_flowtable_attributes(9)
  • nft_flowtable_hook_attributes(9)
  • nft_osf_attributes(9)
  • nft_synproxy_attributes(9)
  • nft_devices_attributes(9)
  • nft_trace_attributes(9)
  • nft_ng_attributes(9)

that's the whole thing, bestie, we ate and left zero crumbs πŸ’– source vibes come from ./include/uapi/linux/netfilter, dated October 2026, and that's the enum nft_meta_attributes(9) page β€” periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from