From: Arif Hossain <etothepowerpi@gmail.com>
To: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: skb_* function to get pointer to udp payload
Date: Tue, 07 Aug 2012 19:42:41 +0600 [thread overview]
Message-ID: <1344346961.4763.12.camel@localhost> (raw)
Hi,
I need to get a pointer to udp payload in my xtables module in following
scenario:
1. From NF_INET_LOCAL_PREROUTING hook. As Transport headers are not yet
initialized, may be i need to play with offsets like
skb_header_pointer(skb, par->thoff,....). Not sure if its correct to use
skb_header_pointer this way though.
2. From NF_INET_LOCAL_OUT. This time as transport fields are already
initialized, i guess there is a direct function to get pointer to udp
payload.
Thanks in advance.
--
Cheers
aft
aftnix@gmail.com
next reply other threads:[~2012-08-07 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 13:42 Arif Hossain [this message]
2012-08-08 18:03 ` skb_* function to get pointer to udp payload Jan Engelhardt
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=1344346961.4763.12.camel@localhost \
--to=etothepowerpi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.