STRUCT NFT_SET_ELEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nft_set_elem(9) β€” Kernel API Manual πŸ’…

✨ NAME ✨

okay so bestie, struct nft_set_elem is the generic representation of set elements. that's the vibe, no cap. 🫢


🌸 SYNOPSIS 🌸

       struct nft_set_elem {
           union {
             u32 buf[NFT_DATA_VALUE_MAXLEN / sizeof(u32)];
             struct nft_data val;
           } key;
           union {
             u32 buf[NFT_DATA_VALUE_MAXLEN / sizeof(u32)];
             struct nft_data val;
           } key_end;
           union {
             u32 buf[NFT_DATA_VALUE_MAXLEN / sizeof(u32)];
             struct nft_data val;
           } data;
           struct nft_elem_priv    *priv;
        };

🫢 Members 🫢

  • key β€” element key. literally the key, bestie. πŸ’…
  • key_end β€” closing element key, periodt. πŸŽ€
  • data β€” element data. the payload energy. πŸ’–
  • priv β€” element private data and extensions. backstage-pass vibes. πŸ‘‘

🌈 SEE ALSO 🌈

kernel file: ./include/net/netfilter/nf_tables.h β€” here's the whole friend group, bestie:

  • struct nft_verdict(9)
  • struct nft_regs(9)
  • struct nft_ctx(9)
  • struct nft_userdata(9)
  • enum nft_iter_type(9)
  • struct nft_set_desc(9)
  • enum nft_set_class(9)
  • struct nft_set_estimate(9)
  • struct nft_expr(9)
  • struct nft_set_ops(9)
  • struct nft_set_type(9)
  • struct nft_set(9)
  • struct nft_set_binding(9)
  • enum nft_set_extensions(9)
  • struct nft_set_ext_type(9)
  • struct nft_set_ext_tmpl(9)
  • struct nft_set_ext(9)
  • struct nft_expr_type(9)
  • struct nft_expr_ops(9)
  • struct nft_rule(9)
  • struct nft_chain_validate_state(9)
  • struct nft_chain(9)
  • struct nft_chain_type(9)
  • struct nft_base_chain(9)
  • struct nft_table(9)
  • struct nft_object_hash_key(9)
  • struct nft_object(9)
  • struct nft_object_type(9)
  • struct nft_object_ops(9)
  • struct nft_flowtable(9)
  • struct nft_traceinfo(9)
  • struct nft_trans(9)
  • struct nft_trans_hook(9)
  • struct nft_trans_binding(9)

byeee πŸ’œ β€” source/version: ./include/net/netfilter Β· date: October 2026 Β· manual page: struct nft_set_elem(9) πŸ¦‹

πŸ“¦ where this page comes from