From: Florian Westphal <fw@strlen.de>
To: Psyspy 22 <psyspy2020@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: libnetfilter_queue: Access conntrack info
Date: Tue, 29 Jun 2021 08:38:02 +0200 [thread overview]
Message-ID: <20210629063802.GD24271@breakpoint.cc> (raw)
In-Reply-To: <CAFqmWq-kOQbjQ=tNWGuk=+yOtuoG98cvRueoT5oK_zNHy8Jfvw@mail.gmail.com>
Psyspy 22 <psyspy2020@gmail.com> wrote:
> Hello Duncan,
>
> I actually need connmark and other conntrack fields like secmark etc.
> I think attr[NFQA_CT] is the correct way to access it but it's empty
> in my case.
> The libnetfilter_queue example sets connmark but doesn't show a way to
> get connmark from the packet.
IIRC you need to set NFQA_CFG_F_CONNTRACK in NFQA_CFG_FLAGS when setting
up the queue. The example only sets F_GSO, so no conntrack info is
added.
next prev parent reply other threads:[~2021-06-29 6:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 4:07 libnetfilter_queue: Access conntrack info Psyspy 22
2021-06-29 2:20 ` Duncan Roe
2021-06-29 4:02 ` Psyspy 22
2021-06-29 6:38 ` Florian Westphal [this message]
2021-06-29 14:22 ` Psyspy 22
2021-06-29 14:38 ` Florian Westphal
2021-07-01 18:13 ` Psyspy 22
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=20210629063802.GD24271@breakpoint.cc \
--to=fw@strlen.de \
--cc=netfilter@vger.kernel.org \
--cc=psyspy2020@gmail.com \
/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