projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a57ebc9
)
[TCP]: Fix off by one in tcp_fragment() "already sent" test.
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 8 Sep 2005 22:10:52 +0000
(15:10 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 8 Sep 2005 22:10:52 +0000
(15:10 -0700)
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_output.c
b/net/ipv4/tcp_output.c
index
6094db5
..
15e1134
100644
(file)
--- a/
net/ipv4/tcp_output.c
+++ b/
net/ipv4/tcp_output.c
@@
-499,7
+499,7
@@
int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss
/* If this packet has been sent out already, we must
* adjust the various packet counters.
*/
- if (
after
(tp->snd_nxt, TCP_SKB_CB(buff)->end_seq)) {
+ if (
!before
(tp->snd_nxt, TCP_SKB_CB(buff)->end_seq)) {
int diff = old_factor - tcp_skb_pcount(skb) -
tcp_skb_pcount(buff);