[PATCH][BRIDGE] Fix build error of br_netfilter with NETFILTER_DEBUG

Yasuyuki KOZAKAI yasuyuki.kozakai at toshiba.co.jp
Sat Feb 11 10:48:56 CET 2006


Hi Stephen,

I failed to build kernel with CONFIG_NETFILTER_DEBUG and
CONFIG_BRIDGE_NETFILTER. The attached patch is correct fix ?

  LD      net/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
net/built-in.o(.text+0xc84c0): In function `br_nf_post_routing':
: undefined reference to `has_bridge_parent'
make: *** [.tmp_vmlinux1] Error 1

Regards,

-- Yasuyuki Kozakai
-------------- next part --------------
[BRIDGE] Fix build error of br_netfilter with NETFILTER_DEBUG

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai at toshiba.co.jp>

---
commit 74c1c8359741fca4c7b80bf538efd3ee96d22d4d
tree 3fdfde9adbf7dea2e79d05ab3db3d4fe0be58cbf
parent 25bf368b3d98668c5d5f38e2201d8bca16e52680
author Yasuyuki Kozakai <yasuyuki.kozakai at toshiba.co.jp> Sat, 11 Feb 2006 18:33:10 +0900
committer Yasuyuki Kozakai <yasuyuki.kozakai at toshiba.co.jp> Sat, 11 Feb 2006 18:33:10 +0900

 net/bridge/br_netfilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index b501816..6bb0c7e 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -805,8 +805,8 @@ static unsigned int br_nf_post_routing(u
 print_error:
 	if (skb->dev != NULL) {
 		printk("[%s]", skb->dev->name);
-		if (has_bridge_parent(skb->dev))
-			printk("[%s]", bridge_parent(skb->dev)->name);
+		if (realoutdev)
+			printk("[%s]", realoutdev->name);
 	}
 	printk(" head:%p, raw:%p, data:%p\n", skb->head, skb->mac.raw,
 					      skb->data);


More information about the netfilter-devel mailing list