netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Bob @ gmail" <bob.zscharnagk@gmail.com>
To: <netfilter-devel@vger.kernel.org>
Subject: Question about using NFT_GOTO in kernel module
Date: Sat, 13 Feb 2021 17:54:53 +0800	[thread overview]
Message-ID: <008001d701ee$486aec10$d940c430$@gmail.com> (raw)

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.  


                 reply	other threads:[~2021-02-13  9:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='008001d701ee$486aec10$d940c430$@gmail.com' \
    --to=bob.zscharnagk@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).