From: Andrew Beverley <andy@andybev.com>
To: Pete Kay <petedao@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: event callback in netfilter-conntrack
Date: Fri, 13 Aug 2010 14:49:36 +0100 [thread overview]
Message-ID: <1281707376.29275.14.camel@andybev> (raw)
In-Reply-To: <AANLkTi=QAxRdeh1srRh8Xdz1qS2eJBzxcRfoNot4=GYd@mail.gmail.com>
> Does anyone know how to obtain the original sport value from struct
> nf_conntrack *ct within the event callback handler?
>
I imagine something like:
port = nfct_get_attr_u16(ct, ATTR_PORT_SRC);
Remember that you may need to use ntohs() to make it readable in the
format you want it.
Regards,
Andy
prev parent reply other threads:[~2010-08-13 13:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 11:39 event callback in netfilter-conntrack Pete Kay
2010-08-13 12:56 ` Changli Gao
2010-08-13 13:49 ` Andrew Beverley [this message]
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=1281707376.29275.14.camel@andybev \
--to=andy@andybev.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=petedao@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;
as well as URLs for NNTP newsgroup(s).