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
e121e75f
Commit
e121e75f
authored
Oct 27, 2003
by
Kevin Lahey
Committed by
Linus Torvalds
Oct 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: When SYN is set, the window is not scaled.
parent
7a0552ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+4
-1
No files found.
net/ipv4/tcp_input.c
View file @
e121e75f
...
@@ -1967,7 +1967,10 @@ static int tcp_ack_update_window(struct sock *sk, struct tcp_opt *tp,
...
@@ -1967,7 +1967,10 @@ static int tcp_ack_update_window(struct sock *sk, struct tcp_opt *tp,
struct
sk_buff
*
skb
,
u32
ack
,
u32
ack_seq
)
struct
sk_buff
*
skb
,
u32
ack
,
u32
ack_seq
)
{
{
int
flag
=
0
;
int
flag
=
0
;
u32
nwin
=
ntohs
(
skb
->
h
.
th
->
window
)
<<
tp
->
snd_wscale
;
u32
nwin
=
ntohs
(
skb
->
h
.
th
->
window
);
if
(
likely
(
!
skb
->
h
.
th
->
syn
))
nwin
<<=
tp
->
snd_wscale
;
if
(
tcp_may_update_window
(
tp
,
ack
,
ack_seq
,
nwin
))
{
if
(
tcp_may_update_window
(
tp
,
ack
,
ack_seq
,
nwin
))
{
flag
|=
FLAG_WIN_UPDATE
;
flag
|=
FLAG_WIN_UPDATE
;
...
...
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