From: Ola Nordstrom <ola@triblock.com>
To: netfilter-devel@lists.netfilter.org
Subject: Re: icmp hdr incorrect in skbuff
Date: Mon, 11 Nov 2002 11:54:25 -0500 [thread overview]
Message-ID: <20021111165425.GA4721@fork.triblock.com> (raw)
In-Reply-To: <20021111081435.GA336@oknodo.bof.de>
On Mon, Nov 11, 2002 at 09:14:35AM +0100, Patrick Schaaf wrote:
> > (*skb)->h.icmph->type
>
> Where did you get the idea that h.icmph would be set sensibly
> inside netfilter hooks? What hook, exactly, are you talking
> about? Your description doesn't say that clearly, and it could
> be crucial to know.
nf_register_hook(&post_routing_ops)
>
> My gut guess would be that h.icmph would only be set correctly when
> the icmp parts of the Linux network stack had their hands on the
> skbuff under inspection.
>
> In other words, I would expect it to be valid only for echo replies
> sent by the machine itself.
>
> Conceptually, to me, the netfilter hooks used by iptables sit
> at the IP layer. Access to other layers must be implemented
> locally in iptables match/target code, by working up from
> the IP header (or down, to get at L2 framing, if that exists).
Ok. I was under the impression that the headers above IP would be set
properly inside the skbuff aswell. None of the docs really made this
clear.
>
> Hope this helps. If I'm not talking sense, somebody shoot the argument.
Yes. Thanks!
-Ola
prev parent reply other threads:[~2002-11-11 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 7:41 icmp hdr incorrect in skbuff Ola Nordstrom
2002-11-11 8:14 ` Patrick Schaaf
2002-11-11 16:54 ` Ola Nordstrom [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=20021111165425.GA4721@fork.triblock.com \
--to=ola@triblock.com \
--cc=netfilter-devel@lists.netfilter.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.