STRUCT XT_MTCHK_PARAM(9)
π 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 intableβ the table the rule is tried to be inserted into π that's the target, bestieentryinfoβ the family-specific rule data. it's one ofstruct ipt_ip,ip6t_ip,arpt_arp, or β note this βebt_entryπ yeah, that last one's the little exception, don't forget hermatchβ thestruct xt_matchthrough which this function was invoked π§ she's the one who called, basicallymatchinfoβ per-match data π tiny, personal, just for this matchhook_maskβ via which hooks the new rule is reachable πͺ the whole map of where this rule can be hitfamilyβ the actualNFPROTO_*through which the function is invoked. highkey helpful whenmatch->family == NFPROTO_UNSPECπ like when the match is being all mysterious about its family, this tells you the truthnft_compatβtrueif we're running from the nft compat layer π§ββοΈβ¨ otherwise it's just false and living its life
π SEE ALSO π
- Kernel file
./include/linux/netfilter/x_tables.h struct xt_action_param(9)struct xt_mtdtor_param(9)struct xt_tgchk_param(9)var xt_recseq(9)xt_write_recseq_begin(9)xt_write_recseq_end(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms