Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



thorpej
Mon Jun 30 11:35:57 PDT 1997
Update of /cvsroot/src/sys/netinet
In directory netbsd1:/var/slash-tmp/cvs-serv18917

Modified Files:
      Tag: SYN_cache_branch
        tcp_input.c 
Log Message:
Correct and document the semantics of error handling in syn_cache_get()
when creating the connection.  syn_cache_get() now returns the following:
* NULL: We don't have a SYN for this ACK; send the peer an RST.
* -1: We are unable to create a socket for this connection.  We have
  sent an ACK,RST to the peer.  Since the mbuf is being used to send
  the response, caller should not free it.
* -2: Some other error occured while creating the connection, but we were
  able to create a socket.  In this case, caller should simply drop the
  packet, and let the peer resend the ACK (this is the "abort and retry"
  case).
* Else, return value is a pointer to the socket created for the new
  connection.




Home | Main Index | Thread Index | Old Index