Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f81d20b0
Commit
f81d20b0
authored
Nov 03, 2002
by
Andries E. Brouwer
Committed by
David S. Miller
Nov 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP] Do not update rcv_nxt until ts_recent is updated.
parent
4a618fbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+5
-4
No files found.
net/ipv4/tcp_input.c
View file @
f81d20b0
...
@@ -3454,10 +3454,6 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
...
@@ -3454,10 +3454,6 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
__set_current_state
(
TASK_RUNNING
);
__set_current_state
(
TASK_RUNNING
);
if
(
!
tcp_copy_to_iovec
(
sk
,
skb
,
tcp_header_len
))
{
if
(
!
tcp_copy_to_iovec
(
sk
,
skb
,
tcp_header_len
))
{
__skb_pull
(
skb
,
tcp_header_len
);
tp
->
rcv_nxt
=
TCP_SKB_CB
(
skb
)
->
end_seq
;
NET_INC_STATS_BH
(
TCPHPHitsToUser
);
eaten
=
1
;
/* Predicted packet is in window by definition.
/* Predicted packet is in window by definition.
* seq == rcv_nxt and rcv_wup <= rcv_nxt.
* seq == rcv_nxt and rcv_wup <= rcv_nxt.
* Hence, check seq<=rcv_wup reduces to:
* Hence, check seq<=rcv_wup reduces to:
...
@@ -3467,6 +3463,11 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
...
@@ -3467,6 +3463,11 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
TCPOLEN_TSTAMP_ALIGNED
)
&&
TCPOLEN_TSTAMP_ALIGNED
)
&&
tp
->
rcv_nxt
==
tp
->
rcv_wup
)
tp
->
rcv_nxt
==
tp
->
rcv_wup
)
tcp_store_ts_recent
(
tp
);
tcp_store_ts_recent
(
tp
);
__skb_pull
(
skb
,
tcp_header_len
);
tp
->
rcv_nxt
=
TCP_SKB_CB
(
skb
)
->
end_seq
;
NET_INC_STATS_BH
(
TCPHPHitsToUser
);
eaten
=
1
;
}
}
}
}
if
(
!
eaten
)
{
if
(
!
eaten
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment