From: Bart De Schuymer <bdschuym@pandora.be>
To: "David S.Miller" <davem@redhat.com>
Cc: netdev <netdev@oss.sgi.com>,
netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH, RFC] Add bridged IPv6 packet filtering
Date: Tue, 31 Aug 2004 20:28:42 +0200 [thread overview]
Message-ID: <200408312028.42742.bdschuym@pandora.be> (raw)
In-Reply-To: <200408281713.29192.bdschuym@pandora.be>
On Saturday 28 August 2004 17:13, Bart De Schuymer wrote:
Hi,
How should I proceed to get any response in this matter? Should I be
contacting someone else? I'm no authority on IPv6, so I would like an
informed opinion...
Mapping the IPv6 hooks onto the bridge hooks was really easy, because there is
no NAT stuff to mess things up. This is not a complicated patch. Also, if the
bridge-nf code causes a malfunction in ip6tables, this can be undone by
simply setting /proc/sys/net/bridge/bridge-nf-call-ip6tables 0 untill a
solution is available.
cheers,
Bart
> Hello,
>
> The patch below adds bridged IPv6 packet filtering.
>
> One thing I was unclear of what to do: before giving an IPv6 packet to
> ip6tables the IPv6 sanity checks are done (copied from ipv6_rcv()).
> These checks include this code snippet:
>
> if (hdr->nexthdr == NEXTHDR_HOP) {
> skb->h.raw = (u8*)(hdr+1);
> if (ipv6_parse_hopopts(skb, offsetof(struct ipv6hdr, nexthdr)) < 0) {
> IP6_INC_STATS_BH(IPSTATS_MIB_INHDRERRORS);
> return 0;
> }
> hdr = skb->nh.ipv6h;
> }
>
> If it's necessary to call ipv6_parse_hopopts() then this function will need
> to be exported. Note that we only need ip6tables to behave correctly. So,
> is this function call needed to let ip6tables behave properly?
> Also, what happens if skb->h.raw = (u8*)(hdr+1); is executed once
> inside the bridge-nf code and later all the IPv6 checks are done again
> in ipv6_rcv() ? This can happen if the IPv6 packet is destined for the
> bridge box or if it's used as a router too.
>
> In short, I'd like to know which IPv6 sanity checks are absolutely
> necessary for ip6tables and if there are any implications if those checks
> are done twice.
>
> This patch has been tested by Scott MacKay <scottmackay@yahoo.com>.
>
> cheers,
> Bart
>
> --- linux-2.6.8.1/include/linux/netfilter_ipv6.h.old Sun Aug 22 18:49:47
<snip>
next prev parent reply other threads:[~2004-08-31 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-28 15:13 [PATCH, RFC] Add bridged IPv6 packet filtering Bart De Schuymer
2004-08-31 18:28 ` Bart De Schuymer [this message]
2004-08-31 20:28 ` David S. Miller
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=200408312028.42742.bdschuym@pandora.be \
--to=bdschuym@pandora.be \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.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 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).