Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129715
b: refs/heads/master
c: a2bd40a
h: refs/heads/master
i:
  129713: f344798
  129711: 80942f7
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 13, 2009
1 parent 785d5af commit 3ccb255
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88843104a19d5896bf67ab6bd685e976240dd04a
refs/heads/master: a2bd40ad3151d4d346fd167e01fb84b06f7247fc
10 changes: 8 additions & 2 deletions trunk/net/bridge/br_netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,11 @@ static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb,
if (skb->protocol == htons(ETH_P_IP) || IS_VLAN_IP(skb) ||
IS_PPPOE_IP(skb))
pf = PF_INET;
else
else if (skb->protocol == htons(ETH_P_IPV6) || IS_VLAN_IPV6(skb) ||
IS_PPPOE_IPV6(skb))
pf = PF_INET6;
else
return NF_ACCEPT;

nf_bridge_pull_encap_header(skb);

Expand Down Expand Up @@ -828,8 +831,11 @@ static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff *skb,
if (skb->protocol == htons(ETH_P_IP) || IS_VLAN_IP(skb) ||
IS_PPPOE_IP(skb))
pf = PF_INET;
else
else if (skb->protocol == htons(ETH_P_IPV6) || IS_VLAN_IPV6(skb) ||
IS_PPPOE_IPV6(skb))
pf = PF_INET6;
else
return NF_ACCEPT;

#ifdef CONFIG_NETFILTER_DEBUG
if (skb->dst == NULL) {
Expand Down

0 comments on commit 3ccb255

Please sign in to comment.