X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Ftcp.h;h=492e035fe1834fce2f3a4d77e2e7347e213bc918;hb=1529dadb6c2170bf9899fbde46d06a3d9a392b52;hp=c2ca89307e4fc666bffac29c1608b068ab371b99;hpb=f2fd50e797e6a3b3590e4c2e13b6782dd87c25a2;p=tpg%2Facess2.git diff --git a/Modules/IPStack/tcp.h b/Modules/IPStack/tcp.h index c2ca8930..492e035f 100644 --- a/Modules/IPStack/tcp.h +++ b/Modules/IPStack/tcp.h @@ -90,8 +90,8 @@ struct sTCPConnection tInterface *Interface; //!< Listening Interface tVFS_Node Node; //!< Node - int NextSequenceSend; //!< Next sequence value for outbound packets - int NextSequenceRcv; //!< Next expected sequence value for inbound + Uint32 NextSequenceSend; //!< Next sequence value for outbound packets + Uint32 NextSequenceRcv; //!< Next expected sequence value for inbound /** * \brief Non-ACKed packets @@ -106,12 +106,11 @@ struct sTCPConnection /** * \brief Unread Packets - * \note Double ended list (fifo) + * \note Ring buffer * \{ */ tSpinlock lRecievedPackets; - tTCPStoredPacket *RecievedPackets; //!< Unread Packets - tTCPStoredPacket *RecievedPacketsTail; //!< Unread Packets (End of list) + tRingBuffer *RecievedBuffer; /** * \} */ @@ -137,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