* Question about using NFT_GOTO in kernel module
@ 2021-02-13 9:54 Bob @ gmail
0 siblings, 0 replies; only message in thread
From: Bob @ gmail @ 2021-02-13 9:54 UTC (permalink / raw)
To: netfilter-devel
Hi,
I'm hoping this is the correct place to ask questions about nftables. I'm
developing an extension module using "Tutorial Extending nftables by Xiang
Gao" in your external links.
I find I would like to return a NFT_GOTO result in my "static void
nft_extension_eval(const struct nft_expr *expr, struct nft_regs *regs, const
struct nft_pktinfo *pkt)" finction.
I was previously setting "regs->verdict.code = NFT_CONTINUE" and
"regs->verdict.code = NF_DROP" successfully and getting the desired results.
I'd like to set NFT_GOTO and I can see that "nft_regs->verdict' has a chain
entry.
My question is how do I populate that?
Thanks.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-13 9:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-13 9:54 Question about using NFT_GOTO in kernel module Bob @ gmail
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).