Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: None <source@NetBSD.ORG>
Date: 06/30/1997 18:40:02
Mon Jun 30 11:35:57 PDT 1997
Update of /cvsroot/src/sys/netinet
In directory netbsd1:/var/slash-tmp/cvs-serv18917
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"
* Else, return value is a pointer to the socket created for the new