From: Patrick Schaaf <bof@bof.de>
To: netfilter-devel@lists.netfilter.org
Subject: Re: icmp hdr incorrect in skbuff
Date: Mon, 11 Nov 2002 09:14:35 +0100 [thread overview]
Message-ID: <20021111081435.GA336@oknodo.bof.de> (raw)
In-Reply-To: <20021111074147.GA29344@fork.triblock.com>
> (*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.
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).
Hope this helps. If I'm not talking sense, somebody shoot the argument.
best regards
Patrick
next prev parent reply other threads:[~2002-11-11 8:14 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 [this message]
2002-11-11 16:54 ` Ola Nordstrom
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=20021111081435.GA336@oknodo.bof.de \
--to=bof@bof.de \
--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.