git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed spinlock mechananisim
[tpg/acess2.git]
/
Modules
/
IPStack
/
tcp.h
diff --git
a/Modules/IPStack/tcp.h
b/Modules/IPStack/tcp.h
index
10a65ef
..
ab910fb
100644
(file)
--- 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
tInterface *Interface; //!< Listening Interface
tVFS_Node Node; //!< Server Directory node
int NextID; //!< Name of the next connection
- tS
pinlock
lConnections; //!< Spinlock for connections
+ tS
hortSpinlock
lConnections; //!< Spinlock for connections
tTCPConnection *Connections; //!< Connections (linked list)
tTCPConnection *volatile NewConnections;
tTCPConnection *ConnectionsTail;
tTCPConnection *Connections; //!< Connections (linked list)
tTCPConnection *volatile NewConnections;
tTCPConnection *ConnectionsTail;
@@
-98,7
+98,7
@@
struct sTCPConnection
* \note FIFO list
* \{
*/
* \note FIFO list
* \{
*/
- t
Spinlock
lQueuedPackets;
+ t
Mutex
lQueuedPackets;
tTCPStoredPacket *QueuedPackets; //!< Non-ACKed packets
/**
* \}
tTCPStoredPacket *QueuedPackets; //!< Non-ACKed packets
/**
* \}
@@
-106,12
+106,11
@@
struct sTCPConnection
/**
* \brief Unread Packets
/**
* \brief Unread Packets
- * \note
Double ended list (fifo)
+ * \note
Ring buffer
* \{
*/
* \{
*/
- tSpinlock lRecievedPackets;
- tTCPStoredPacket *RecievedPackets; //!< Unread Packets
- tTCPStoredPacket *RecievedPacketsTail; //!< Unread Packets (End of list)
+ tMutex lRecievedPackets;
+ tRingBuffer *RecievedBuffer;
/**
* \}
*/
/**
* \}
*/
@@
-121,7
+120,7
@@
struct sTCPConnection
* \note Sorted list to improve times
* \{
*/
* \note Sorted list to improve times
* \{
*/
- tS
pinlock
lFuturePackets; //!< Future packets spinlock
+ tS
hortSpinlock
lFuturePackets; //!< Future packets spinlock
tTCPStoredPacket *FuturePackets; //!< Out of sequence packets
/**
* \}
tTCPStoredPacket *FuturePackets; //!< Out of sequence packets
/**
* \}
@@
-137,8
+136,11
@@
struct sTCPConnection
enum eTCPConnectionState
{
TCP_ST_CLOSED,
enum eTCPConnectionState
{
TCP_ST_CLOSED,
+ TCP_ST_SYN_SENT,
TCP_ST_HALFOPEN,
TCP_ST_HALFOPEN,
- TCP_ST_OPEN
+ TCP_ST_OPEN,
+ TCP_ST_FIN_SENT,
+ TCP_ST_FINISHED
};
#endif
};
#endif
UCC
git Repository :: git.ucc.asn.au