ENUM NFT_OSF_ATTRIBUTES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum nft_osf_attributes(9) β€” ok bestie, welcome to the Kernel API Manual ✨

So this page is literally all about enum nft_osf_attributes β€” the nftables osf expression netlink attributes. Yes it's a whole enum, yes it's iconic, no we're not skipping it 🫢


✨ NAME ✨

enum nft_osf_attributes β€” the nftables osf expression netlink attributes. that's the whole vibe, that's the whole name πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

ok here's the shape of it, copy it exactly, no cap:

enum nft_osf_attributes {
    NFTA_OSF_UNSPEC ,
    NFTA_OSF_DREG ,
    NFTA_OSF_TTL ,
    NFTA_OSF_FLAGS ,
    __NFTA_OSF_MAX

};

look at her. five whole entries. main character energy fr fr πŸ‘‘


πŸŽ€ Constants πŸŽ€

every single one, bestie, we're going through all of them:

  • NFTA_OSF_UNSPEC β€” literally no description in the source. the manpage just says -- undescribed -- and honestly? relatable πŸ™ˆ that's all we know, don't come for me.
  • NFTA_OSF_DREG β€” the destination register. type is NLA_U32: nft_registers. that's where the good stuff lands πŸ’…
  • NFTA_OSF_TTL β€” the value of the TTL osf option, and it's typed NLA_U8 ⭐
  • NFTA_OSF_FLAGS β€” flags. type NLA_U32. that's it, that's the flag entry πŸ”₯
  • __NFTA_OSF_MAX β€” again, -- undescribed -- in the source. she's mysterious. she's the boundary. we love her anyway 🌸
ngl if a constant says -- undescribed -- that's not me being lazy, that's literally what the manual page gives us. i'm not out here inventing lore 😭

🌈 SEE ALSO 🌈

first up, the source of truth β€” it lives in the kernel at ./include/uapi/linux/netfilter/nf_tables.h under that enum. go read it, it's giving homework but make it slay πŸ“š

and then. okay. brace yourself. the whole friend group shows up:

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

like i said. the whole group chat. read them all, iykyk πŸ’œ


that's the page, bestie πŸ’… this one's stamped from ./include/uapi/linux/netfilter and dated October 2026 β€” go forth and enumerate your osf attributes, you absolute icon πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from