From: Tomas Szepe <szepe@pinerecords.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
"David S. Miller" <davem@redhat.com>
Subject: Re: 2.6.0-rc1-mm1
Date: Wed, 31 Dec 2003 11:49:48 +0100 [thread overview]
Message-ID: <20031231104947.GC16860@louise.pinerecords.com> (raw)
In-Reply-To: <20031231024855.0aca5e52.akpm@osdl.org>
On Dec-31 2003, Wed, 02:48 -0800
Andrew Morton <akpm@osdl.org> wrote:
> Tomas Szepe <szepe@pinerecords.com> wrote:
> >
> > In file included from include/linux/netfilter_bridge/ebtables.h:16,
> > from net/bridge/netfilter/ebtables.c:25:
> > include/linux/netfilter_bridge.h: In function `nf_bridge_maybe_copy_header':
> > include/linux/netfilter_bridge.h:74: error: `ETH_P_8021Q' undeclared (first use in this function)
>
> This problem also exists in 2.6.1-rc1.
Andrew, are you quite sure this is the correct fix?
What I did was:
--- b/include/linux/netfilter_bridge.h 2003-12-31 11:47:06.000000000 +0100
+++ linux-2.6.0/include/linux/netfilter_bridge.h 2003-12-31 11:46:08.000000000 +0100
@@ -71,10 +71,12 @@
void nf_bridge_maybe_copy_header(struct sk_buff *skb)
{
if (skb->nf_bridge) {
+#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
if (skb->protocol == __constant_htons(ETH_P_8021Q)) {
memcpy(skb->data - 18, skb->nf_bridge->hh, 18);
skb_push(skb, 4);
} else
+#endif
memcpy(skb->data - 16, skb->nf_bridge->hh, 16);
}
}
@@ -84,8 +86,10 @@
{
int header_size = 16;
+#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
if (skb->protocol == __constant_htons(ETH_P_8021Q))
header_size = 18;
+#endif
memcpy(skb->nf_bridge->hh, skb->data - header_size, header_size);
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2003-12-31 10:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-31 8:47 2.6.0-rc1-mm1 Andrew Morton
2003-12-31 8:59 ` 2.6.0-rc1-mm1 Andrew Morton
2003-12-31 10:19 ` 2.6.0-rc1-mm1 Tomas Szepe
2003-12-31 10:48 ` 2.6.0-rc1-mm1 Andrew Morton
2003-12-31 10:49 ` Tomas Szepe [this message]
2003-12-31 10:57 ` 2.6.0-rc1-mm1 Andrew Morton
2003-12-31 11:00 ` 2.6.0-rc1-mm1 Tomas Szepe
2003-12-31 10:58 ` 2.6.0-rc1-mm1 Bart De Schuymer
2003-12-31 13:03 ` 2.6.0-rc1-mm1 Jeff Garzik
2003-12-31 18:29 ` 2.6.0-rc1-mm1 Muli Ben-Yehuda
2004-01-01 13:53 ` 2.6.0-rc1-mm1 Eugene Teo
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=20031231104947.GC16860@louise.pinerecords.com \
--to=szepe@pinerecords.com \
--cc=akpm@osdl.org \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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