Networking Forums

Networking Forums > Computer Networking > Linux Networking > accept() return point vs incoming SYN

Reply
Thread Tools Display Modes

accept() return point vs incoming SYN

 
 
viki
Guest
Posts: n/a

 
      09-07-2008, 11:05 AM
3-way handshake is (1) C->S SYN (2) C->S SYN (3) C->S ACK.

The accept syscall returns at the point when packet #3 is received on
server,
correct ? Not when packet #1 is received.

Is it same on all OSes ? Are there OS where accept
returns after packets No.1 is received by server ?

Thanks
V.M.
 
Reply With Quote
 
 
 
 
Rick Jones
Guest
Posts: n/a

 
      09-08-2008, 05:37 PM
viki <(E-Mail Removed)> wrote:
> 3-way handshake is (1) C->S SYN (2) C->S SYN (3) C->S ACK.


> The accept syscall returns at the point when packet #3 is received
> on server, correct ? Not when packet #1 is received.


> Is it same on all OSes ? Are there OS where accept
> returns after packets No.1 is received by server ?


There is at least one OS where accept() can return after the SYN is
received, although it still employs a SYN flood defense:

HP-UX tardy B.11.11 U 9000/785 2002119164 unlimited-user license
$ ndd -h tcp_early_conn_ind

tcp_early_conn_ind:

If set to 1, a T_CONN_IND message is sent upstream as soon as a
SYN packet is received from a remote host which is on the TCP's
'good guy' list. A remote host goes on the 'good guy' list if it
is known to have completed the 3-way handshake earlier.
If set to 0, the T_CONN_IND message is not sent upstream until
the 3-way handshake is complete, even if the remote host is
on the 'good guy' list.
[0,1] Default: 1

What leads you to ask the question?

rick jones
--
oxymoron n, commuter in a gas-guzzling luxury SUV with an American flag
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: rule with RETURN target just after a rule with ACCEPT target Neroku Linux Networking 0 04-25-2007 08:13 AM
iptables: rule with RETURN target after a rule with the ACCEPT target Neroku Linux Networking 0 04-24-2007 08:43 PM
Deleted files return =?Utf-8?B?Um9iIFIu?= Windows Networking 5 02-01-2005 05:19 PM
Urgent : Windows ME to accept an incoming VPN connection Andy Levy Windows Networking 2 04-26-2004 10:51 AM
Can I return a router? Sam Wireless Internet 9 02-27-2004 12:55 AM



1 2 3 4 5 6 7 8 9 10 11