#include "../netinet/in.h"
#include "../netinet/in_pcb.h"
#include "../netinet/in_systm.h"
#include "../netinet/in.h"
#include "../netinet/in_pcb.h"
#include "../netinet/in_systm.h"
#include "../netinet/tcp_var.h"
#include "../netinet/tcpip.h"
#include "../netinet/tcp_debug.h"
#include "../netinet/tcp_var.h"
#include "../netinet/tcpip.h"
#include "../netinet/tcp_debug.h"
/*
* TCP protocol interface to socket abstraction.
*/
extern char *tcpstates[];
struct tcpcb *tcp_newtcpcb();
/*
* TCP protocol interface to socket abstraction.
*/
extern char *tcpstates[];
struct tcpcb *tcp_newtcpcb();
-tcp_usrreq(so, req, m, nam, opt)
+tcp_usrreq(so, req, m, nam, rights)
/*
* When a TCP is attached to a socket, then there will be
* a (struct inpcb) pointed at by the socket, and this
/*
* When a TCP is attached to a socket, then there will be
* a (struct inpcb) pointed at by the socket, and this
/*
* Initiate disconnect from peer.
* If connection never passed embryonic stage, just drop;
/*
* Initiate disconnect from peer.
* If connection never passed embryonic stage, just drop;
/*
* Initiate (or continue) disconnect.
* If embryonic state, just send reset (once).
/*
* Initiate (or continue) disconnect.
* If embryonic state, just send reset (once).
* Otherwise (hard), mark socket disconnecting and drop
* current input data; switch states based on user close, and
* send segment to peer (with FIN).
*/
* Otherwise (hard), mark socket disconnecting and drop
* current input data; switch states based on user close, and
* send segment to peer (with FIN).
*/
* for peer to send FIN or not respond to keep-alives, etc.
* We can let the user exit from the close as soon as the FIN is acked.
*/
* for peer to send FIN or not respond to keep-alives, etc.
* We can let the user exit from the close as soon as the FIN is acked.
*/