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
45eb99ec
Commit
45eb99ec
authored
Jul 09, 2003
by
David S. Miller
Committed by
Stephen Hemminger
Jul 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Initialize socket route on move to established state.
parent
c2516b64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+9
-0
No files found.
net/ipv4/tcp_input.c
View file @
45eb99ec
...
@@ -3693,6 +3693,10 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
...
@@ -3693,6 +3693,10 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
tcp_sync_mss
(
sk
,
tp
->
pmtu_cookie
);
tcp_sync_mss
(
sk
,
tp
->
pmtu_cookie
);
tcp_initialize_rcv_mss
(
sk
);
tcp_initialize_rcv_mss
(
sk
);
/* Make sure socket is routed, for correct metrics. */
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
tcp_init_metrics
(
sk
);
tcp_init_buffer_space
(
sk
);
tcp_init_buffer_space
(
sk
);
...
@@ -3959,6 +3963,11 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
...
@@ -3959,6 +3963,11 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
if
(
tp
->
tstamp_ok
)
if
(
tp
->
tstamp_ok
)
tp
->
advmss
-=
TCPOLEN_TSTAMP_ALIGNED
;
tp
->
advmss
-=
TCPOLEN_TSTAMP_ALIGNED
;
/* Make sure socket is routed, for
* correct metrics.
*/
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
tcp_init_metrics
(
sk
);
tcp_initialize_rcv_mss
(
sk
);
tcp_initialize_rcv_mss
(
sk
);
tcp_init_buffer_space
(
sk
);
tcp_init_buffer_space
(
sk
);
...
...
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