Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3925
b: refs/heads/master
c: 9666dae
h: refs/heads/master
i:
  3923: a081d99
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jun 28, 2005
1 parent 6f6d788 commit c942053
Show file tree
Hide file tree
Showing 3 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: bcd61272db5e643b6d9c01c9d5085b914d9f19df
refs/heads/master: 9666dae51013b064e7d77fc36b5cee98dd167ed5
2 changes: 1 addition & 1 deletion trunk/net/bridge/br_netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ static unsigned int ip_sabotage_out(unsigned int hook, struct sk_buff **pskb,
* doesn't use the bridge parent of the indev by using
* the BRNF_DONT_TAKE_PARENT mask. */
if (hook == NF_IP_FORWARD && nf_bridge->physindev == NULL) {
nf_bridge->mask &= BRNF_DONT_TAKE_PARENT;
nf_bridge->mask |= BRNF_DONT_TAKE_PARENT;
nf_bridge->physindev = (struct net_device *)in;
}
#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
Expand Down
8 changes: 7 additions & 1 deletion trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ static inline int ip_finish_output2(struct sk_buff *skb)
skb = skb2;
}

nf_reset(skb);
#ifdef CONFIG_BRIDGE_NETFILTER
/* bridge-netfilter defers calling some IP hooks to the bridge layer
* and still needs the conntrack reference.
*/
if (skb->nf_bridge == NULL)
#endif
nf_reset(skb);

if (hh) {
int hh_alen;
Expand Down

0 comments on commit c942053

Please sign in to comment.