Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254241
b: refs/heads/master
c: 353e5c9
h: refs/heads/master
i:
  254239: 2175f30
v: v3
  • Loading branch information
Steffen Klassert authored and David S. Miller committed Jun 28, 2011
1 parent 164ad08 commit c9d37a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 33f99dc7fd948bbc808a24a0989c167f8973b643
refs/heads/master: 353e5c9abd900de3d1a40925386ffe4abf76111e
10 changes: 5 additions & 5 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,6 @@ static int __ip_append_data(struct sock *sk,
skb = skb_peek_tail(queue);

exthdrlen = !skb ? rt->dst.header_len : 0;
length += exthdrlen;
transhdrlen += exthdrlen;
mtu = cork->fragsize;

hh_len = LL_RESERVED_SPACE(rt->dst.dev);
Expand Down Expand Up @@ -883,6 +881,8 @@ static int __ip_append_data(struct sock *sk,
else
alloclen = fraglen;

alloclen += exthdrlen;

/* The last fragment gets additional space at tail.
* Note, with MSG_MORE we overallocate on fragments,
* because we have no idea what fragment will be
Expand Down Expand Up @@ -923,11 +923,11 @@ static int __ip_append_data(struct sock *sk,
/*
* Find where to start putting bytes.
*/
data = skb_put(skb, fraglen);
data = skb_put(skb, fraglen + exthdrlen);
skb_set_network_header(skb, exthdrlen);
skb->transport_header = (skb->network_header +
fragheaderlen);
data += fragheaderlen;
data += fragheaderlen + exthdrlen;

if (fraggap) {
skb->csum = skb_copy_and_csum_bits(
Expand Down Expand Up @@ -1061,7 +1061,7 @@ static int ip_setup_cork(struct sock *sk, struct inet_cork *cork,
*/
*rtp = NULL;
cork->fragsize = inet->pmtudisc == IP_PMTUDISC_PROBE ?
rt->dst.dev->mtu : dst_mtu(rt->dst.path);
rt->dst.dev->mtu : dst_mtu(&rt->dst);
cork->dst = &rt->dst;
cork->length = 0;
cork->tx_flags = ipc->tx_flags;
Expand Down

0 comments on commit c9d37a1

Please sign in to comment.