STRUCT XT_MTCHK_PARAM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct xt_mtchk_param(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the <pink>Kernel API Manual</pink> entry for struct xt_mtchk_param, which β€” say it with me β€” holds the parameters for match extensions' checkentry functions. that's it, that's the vibe. she's a little struct with big main character energy πŸŽ€


✨ SYNOPSIS ✨

struct xt_mtchk_param {
    struct net *net;
    const char *table;
    const void *entryinfo;
    const struct xt_match *match;
    void *matchinfo;
    unsigned int hook_mask;
    u_int8_t family;
    bool nft_compat;
 };

literally just a struct, no cap. now let's meet the members one by one, because they all ate πŸ’…


🫢 Members 🫢

  • net β€” the network namespace through which the check was invoked 🌐 like, which world are we doing this in
  • table β€” the table the rule is tried to be inserted into πŸ“‹ that's the target, bestie
  • entryinfo β€” the family-specific rule data. it's one of struct ipt_ip, ip6t_ip, arpt_arp, or β€” note this β€” ebt_entry πŸ‘€ yeah, that last one's the little exception, don't forget her
  • match β€” the struct xt_match through which this function was invoked 🧚 she's the one who called, basically
  • matchinfo β€” per-match data πŸ“ tiny, personal, just for this match
  • hook_mask β€” via which hooks the new rule is reachable πŸͺ the whole map of where this rule can be hit
  • family β€” the actual NFPROTO_* through which the function is invoked. highkey helpful when match->family == NFPROTO_UNSPEC 😭 like when the match is being all mysterious about its family, this tells you the truth
  • nft_compat β€” true if we're running from the nft compat layer πŸ§šβ€β™€οΈβœ¨ otherwise it's just false and living its life

🌈 SEE ALSO 🌈

go read those too, iykyk, they're all in the same friend group 🫢


okay that's the whole page, you're officially educated πŸ’– this was struct xt_mtchk_param(9), straight out of ./include/linux/netfilter, dated October 2026 β€” periodt, see you in the next manpage bestie πŸŒΈπŸ‘‘

πŸ“¦ where this page comes from