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
e0ff713f
Commit
e0ff713f
authored
Oct 15, 2002
by
Alexey Kuznetsov
Committed by
David S. Miller
Oct 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TCP]: Handle passive resets correctly in SYN-RECV.
parent
11db4bd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_minisocks.c
+5
-5
No files found.
net/ipv4/tcp_minisocks.c
View file @
e0ff713f
...
@@ -902,13 +902,13 @@ struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb,
...
@@ -902,13 +902,13 @@ struct sock *tcp_check_req(struct sock *sk,struct sk_buff *skb,
* and the incoming segment acknowledges something not yet
* and the incoming segment acknowledges something not yet
* sent (the segment carries an unaccaptable ACK) ...
* sent (the segment carries an unaccaptable ACK) ...
* a reset is sent."
* a reset is sent."
*
* Invalid ACK: reset will be sent by listening socket
*/
*/
if
(
!
(
flg
&
TCP_FLAG_ACK
))
if
((
flg
&
TCP_FLAG_ACK
)
&&
return
NULL
;
(
TCP_SKB_CB
(
skb
)
->
ack_seq
!=
req
->
snt_isn
+
1
))
/* Invalid ACK: reset will be sent by listening socket */
if
(
TCP_SKB_CB
(
skb
)
->
ack_seq
!=
req
->
snt_isn
+
1
)
return
sk
;
return
sk
;
/* Also, it would be not so bad idea to check rcv_tsecr, which
/* Also, it would be not so bad idea to check rcv_tsecr, which
* is essentially ACK extension and too early or too late values
* is essentially ACK extension and too early or too late values
* should cause reset in unsynchronized states.
* should cause reset in unsynchronized states.
...
...
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