Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33096
b: refs/heads/master
c: dafee49
h: refs/heads/master
v: v3
  • Loading branch information
Wei Dong authored and David S. Miller committed Aug 2, 2006
1 parent f50a74b commit 5e5fded
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 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: 32c524d1c48b62be49fa1b1dd93fed10792debc0
refs/heads/master: dafee490858f79e144c5e6cdd84ceb9efa20a3f1
7 changes: 4 additions & 3 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))

err = output(skb);

if (!err)
IP_INC_STATS(IPSTATS_MIB_FRAGCREATES);
if (err || !frag)
break;

Expand Down Expand Up @@ -649,16 +651,15 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
/*
* Put this fragment into the sending queue.
*/

IP_INC_STATS(IPSTATS_MIB_FRAGCREATES);

iph->tot_len = htons(len + hlen);

ip_send_check(iph);

err = output(skb2);
if (err)
goto fail;

IP_INC_STATS(IPSTATS_MIB_FRAGCREATES);
}
kfree_skb(skb);
IP_INC_STATS(IPSTATS_MIB_FRAGOKS);
Expand Down
8 changes: 5 additions & 3 deletions trunk/net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
}

err = output(skb);
if(!err)
IP6_INC_STATS(IPSTATS_MIB_FRAGCREATES);

if (err || !frag)
break;

Expand Down Expand Up @@ -707,12 +710,11 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
/*
* Put this fragment into the sending queue.
*/

IP6_INC_STATS(IPSTATS_MIB_FRAGCREATES);

err = output(frag);
if (err)
goto fail;

IP6_INC_STATS(IPSTATS_MIB_FRAGCREATES);
}
kfree_skb(skb);
IP6_INC_STATS(IPSTATS_MIB_FRAGOKS);
Expand Down

0 comments on commit 5e5fded

Please sign in to comment.