X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Ftcp.h;h=ab910fb9446dc89bb371673df8b5cbf6b45e8685;hb=de8ff799edf1fbfeee9447923497273dd254252c;hp=cdd3a8f0e99909f3eb49eaa005ebf6f8919ef325;hpb=ede46f1819c8b3c51d04829cac8bd95bcc602d8f;p=tpg%2Facess2.git diff --git a/Modules/IPStack/tcp.h b/Modules/IPStack/tcp.h index cdd3a8f0..ab910fb9 100644 --- a/Modules/IPStack/tcp.h +++ b/Modules/IPStack/tcp.h @@ -67,7 +67,7 @@ struct sTCPListener tInterface *Interface; //!< Listening Interface tVFS_Node Node; //!< Server Directory node int NextID; //!< Name of the next connection - tSpinlock lConnections; //!< Spinlock for connections + tShortSpinlock lConnections; //!< Spinlock for connections tTCPConnection *Connections; //!< Connections (linked list) tTCPConnection *volatile NewConnections; tTCPConnection *ConnectionsTail; @@ -98,7 +98,7 @@ struct sTCPConnection * \note FIFO list * \{ */ - tSpinlock lQueuedPackets; + tMutex lQueuedPackets; tTCPStoredPacket *QueuedPackets; //!< Non-ACKed packets /** * \} @@ -109,7 +109,7 @@ struct sTCPConnection * \note Ring buffer * \{ */ - tSpinlock lRecievedPackets; + tMutex lRecievedPackets; tRingBuffer *RecievedBuffer; /** * \} @@ -120,7 +120,7 @@ struct sTCPConnection * \note Sorted list to improve times * \{ */ - tSpinlock lFuturePackets; //!< Future packets spinlock + tShortSpinlock lFuturePackets; //!< Future packets spinlock tTCPStoredPacket *FuturePackets; //!< Out of sequence packets /** * \} @@ -136,8 +136,11 @@ struct sTCPConnection enum eTCPConnectionState { TCP_ST_CLOSED, + TCP_ST_SYN_SENT, TCP_ST_HALFOPEN, - TCP_ST_OPEN + TCP_ST_OPEN, + TCP_ST_FIN_SENT, + TCP_ST_FINISHED }; #endif