Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1263
b: refs/heads/master
c: 8be5893
h: refs/heads/master
i:
  1261: 5372ca5
  1259: 65606f6
  1255: 00be661
  1247: f422a7e
v: v3
  • Loading branch information
David S. Miller committed May 19, 2005
1 parent 74ea257 commit f65503c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 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: d9fa0f392b20b2b8e3df379c44194492a2446c6e
refs/heads/master: 8be58932ca596972e4953ae980d8bc286857cae8
28 changes: 8 additions & 20 deletions trunk/net/ipv4/netfilter/ip_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,37 +940,25 @@ void ip_ct_refresh_acct(struct ip_conntrack *ct,
struct sk_buff *
ip_ct_gather_frags(struct sk_buff *skb, u_int32_t user)
{
struct sock *sk = skb->sk;
#ifdef CONFIG_NETFILTER_DEBUG
unsigned int olddebug = skb->nf_debug;
#endif

if (sk) {
sock_hold(sk);
skb_orphan(skb);
}
skb_orphan(skb);

local_bh_disable();
skb = ip_defrag(skb, user);
local_bh_enable();

if (!skb) {
if (sk)
sock_put(sk);
return skb;
}

if (sk) {
skb_set_owner_w(skb, sk);
sock_put(sk);
}

ip_send_check(skb->nh.iph);
skb->nfcache |= NFC_ALTERED;
if (skb) {
ip_send_check(skb->nh.iph);
skb->nfcache |= NFC_ALTERED;
#ifdef CONFIG_NETFILTER_DEBUG
/* Packet path as if nothing had happened. */
skb->nf_debug = olddebug;
/* Packet path as if nothing had happened. */
skb->nf_debug = olddebug;
#endif
}

return skb;
}

Expand Down

0 comments on commit f65503c

Please sign in to comment.