Commit c69b2383 authored by Luiz Capitulino's avatar Luiz Capitulino Committed by David S. Miller

[BRIDGE]: Fix br_netfilter.c build with CONFIG_SYSCTL disabled

parent bd23ad70
...@@ -435,8 +435,10 @@ static unsigned int br_nf_forward_arp(unsigned int hook, struct sk_buff **pskb, ...@@ -435,8 +435,10 @@ static unsigned int br_nf_forward_arp(unsigned int hook, struct sk_buff **pskb,
struct vlan_ethhdr *hdr = (struct vlan_ethhdr *)(skb->mac.ethernet); struct vlan_ethhdr *hdr = (struct vlan_ethhdr *)(skb->mac.ethernet);
struct net_device **d = (struct net_device **)(skb->cb); struct net_device **d = (struct net_device **)(skb->cb);
#ifdef CONFIG_SYSCTL
if (!brnf_call_arptables) if (!brnf_call_arptables)
return NF_ACCEPT; return NF_ACCEPT;
#endif
if (skb->protocol != __constant_htons(ETH_P_ARP)) { if (skb->protocol != __constant_htons(ETH_P_ARP)) {
if (!IS_VLAN_ARP) if (!IS_VLAN_ARP)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment