diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-06-17 19:16:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 19:16:13 -0400 |
commit | f586287e0fed366d80822666f70487472ab8793a (patch) | |
tree | 5e3153f55bd75a2e06821aea2809b9e463d427d2 /net/bridge | |
parent | 92c0574f11598c8036f81e27d2e8bdd6eed7d76d (diff) |
bridge: fix IPV6=n build
Fix bridge netfilter code so that it uses CONFIG_IPV6 as needed:
net/built-in.o: In function `ebt_filter_ip6':
ebt_ip6.c:(.text+0x87c37): undefined reference to `ipv6_skip_exthdr'
net/built-in.o: In function `ebt_log_packet':
ebt_log.c:(.text+0x88dee): undefined reference to `ipv6_skip_exthdr'
make[1]: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/Kconfig | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/Makefile | 2 | ||||
-rw-r--r-- | net/bridge/netfilter/ebt_log.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/net/bridge/netfilter/Kconfig b/net/bridge/netfilter/Kconfig index fb684c2ff8b6..540df4106bec 100644 --- a/net/bridge/netfilter/Kconfig +++ b/net/bridge/netfilter/Kconfig | |||
@@ -85,7 +85,7 @@ config BRIDGE_EBT_IP | |||
85 | 85 | ||
86 | config BRIDGE_EBT_IP6 | 86 | config BRIDGE_EBT_IP6 |
87 | tristate "ebt: IP6 filter support" | 87 | tristate "ebt: IP6 filter support" |
88 | depends on BRIDGE_NF_EBTABLES | 88 | depends on BRIDGE_NF_EBTABLES && IPV6 |
89 | help | 89 | help |
90 | This option adds the IP6 match, which allows basic IPV6 header field | 90 | This option adds the IP6 match, which allows basic IPV6 header field |
91 | filtering. | 91 | filtering. |
diff --git a/net/bridge/netfilter/Makefile b/net/bridge/netfilter/Makefile index dd960645b413..0718699540b0 100644 --- a/net/bridge/netfilter/Makefile +++ b/net/bridge/netfilter/Makefile | |||
@@ -14,7 +14,7 @@ obj-$(CONFIG_BRIDGE_EBT_802_3) += ebt_802_3.o | |||
14 | obj-$(CONFIG_BRIDGE_EBT_AMONG) += ebt_among.o | 14 | obj-$(CONFIG_BRIDGE_EBT_AMONG) += ebt_among.o |
15 | obj-$(CONFIG_BRIDGE_EBT_ARP) += ebt_arp.o | 15 | obj-$(CONFIG_BRIDGE_EBT_ARP) += ebt_arp.o |
16 | obj-$(CONFIG_BRIDGE_EBT_IP) += ebt_ip.o | 16 | obj-$(CONFIG_BRIDGE_EBT_IP) += ebt_ip.o |
17 | obj-$(CONFIG_BRIDGE_EBT_IP) += ebt_ip6.o | 17 | obj-$(CONFIG_BRIDGE_EBT_IP6) += ebt_ip6.o |
18 | obj-$(CONFIG_BRIDGE_EBT_LIMIT) += ebt_limit.o | 18 | obj-$(CONFIG_BRIDGE_EBT_LIMIT) += ebt_limit.o |
19 | obj-$(CONFIG_BRIDGE_EBT_MARK) += ebt_mark_m.o | 19 | obj-$(CONFIG_BRIDGE_EBT_MARK) += ebt_mark_m.o |
20 | obj-$(CONFIG_BRIDGE_EBT_PKTTYPE) += ebt_pkttype.o | 20 | obj-$(CONFIG_BRIDGE_EBT_PKTTYPE) += ebt_pkttype.o |
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c index c883ec8a28b4..2f430d4ae911 100644 --- a/net/bridge/netfilter/ebt_log.c +++ b/net/bridge/netfilter/ebt_log.c | |||
@@ -123,6 +123,7 @@ ebt_log_packet(unsigned int pf, unsigned int hooknum, | |||
123 | goto out; | 123 | goto out; |
124 | } | 124 | } |
125 | 125 | ||
126 | #if defined(CONFIG_BRIDGE_EBT_IP6) || defined(CONFIG_BRIDGE_EBT_IP6_MODULE) | ||
126 | if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == | 127 | if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == |
127 | htons(ETH_P_IPV6)) { | 128 | htons(ETH_P_IPV6)) { |
128 | const struct ipv6hdr *ih; | 129 | const struct ipv6hdr *ih; |
@@ -146,6 +147,7 @@ ebt_log_packet(unsigned int pf, unsigned int hooknum, | |||
146 | print_ports(skb, nexthdr, offset_ph); | 147 | print_ports(skb, nexthdr, offset_ph); |
147 | goto out; | 148 | goto out; |
148 | } | 149 | } |
150 | #endif | ||
149 | 151 | ||
150 | if ((bitmask & EBT_LOG_ARP) && | 152 | if ((bitmask & EBT_LOG_ARP) && |
151 | ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || | 153 | ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || |