From: Florian Westphal <fw@strlen.de>
To: Psyspy rambo <psyspy2020@gmail.com>
Cc: Gordon Fisher <gordfisherman@gmail.com>, netfilter@vger.kernel.org
Subject: Re: Netfilter hook doesn't see all packets
Date: Thu, 21 Nov 2019 21:36:24 +0100 [thread overview]
Message-ID: <20191121203624.GK20235@breakpoint.cc> (raw)
In-Reply-To: <CAFqmWq_FNTL4p1i=Ur7V2vbjv=KUOer5Ar+J4owoNbpO_KBCOg@mail.gmail.com>
Psyspy rambo <psyspy2020@gmail.com> wrote:
> > > udp_header = (struct udphdr *)skb_transport_header(skb);
> > > sip = (unsigned int)ntohl(ip_header->saddr);
> > > dip = (unsigned int)ntohl(ip_header->daddr);
This doesn't work reliably in netfilter hooks.
See skb_header_pointer() usage in other nf modules.
next prev parent reply other threads:[~2019-11-21 20:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 20:23 Netfilter hook doesn't see all packets Psyspy rambo
2019-11-20 18:01 ` Psyspy rambo
2019-11-21 18:08 ` Gordon Fisher
2019-11-21 19:36 ` Psyspy rambo
2019-11-21 20:36 ` Florian Westphal [this message]
2019-11-21 22:31 ` Psyspy rambo
2019-11-21 23:39 ` Psyspy rambo
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=20191121203624.GK20235@breakpoint.cc \
--to=fw@strlen.de \
--cc=gordfisherman@gmail.com \
--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 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.