Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253423
b: refs/heads/master
c: 96d7303
h: refs/heads/master
i:
  253421: 234da94
  253419: a3921db
  253415: 146de8b
  253407: ef97ba1
v: v3
  • Loading branch information
Steffen Klassert authored and David S. Miller committed Jun 9, 2011
1 parent 6e21ed8 commit de7d6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: e23535ca11525945bd7fca05ac5941efba232498
refs/heads/master: 96d7303e9cfb6a9bc664174a4dfdb6fa689284fe
6 changes: 3 additions & 3 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ static int __ip_append_data(struct sock *sk,
int csummode = CHECKSUM_NONE;
struct rtable *rt = (struct rtable *)cork->dst;

exthdrlen = transhdrlen ? rt->dst.header_len : 0;
skb = skb_peek_tail(queue);

exthdrlen = !skb ? rt->dst.header_len : 0;
length += exthdrlen;
transhdrlen += exthdrlen;
mtu = cork->fragsize;
Expand All @@ -825,8 +827,6 @@ static int __ip_append_data(struct sock *sk,
!exthdrlen)
csummode = CHECKSUM_PARTIAL;

skb = skb_peek_tail(queue);

cork->length += length;
if (((length > mtu) || (skb && skb_is_gso(skb))) &&
(sk->sk_protocol == IPPROTO_UDP) &&
Expand Down

0 comments on commit de7d6bc

Please sign in to comment.