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
More work on TCP, approaching usable (untested)
[tpg/acess2.git]
/
Modules
/
IPStack
/
tcp.h
diff --git
a/Modules/IPStack/tcp.h
b/Modules/IPStack/tcp.h
index
fd04f7b
..
87515ce
100644
(file)
--- a/
Modules/IPStack/tcp.h
+++ b/
Modules/IPStack/tcp.h
@@
-9,6
+9,7
@@
typedef struct sTCPHeader tTCPHeader;
typedef struct sTCPListener tTCPListener;
typedef struct sTCPHeader tTCPHeader;
typedef struct sTCPListener tTCPListener;
+typedef struct sTCPStoredPacket tTCPStoredPacket;
typedef struct sTCPConnection tTCPConnection;
struct sTCPHeader
typedef struct sTCPConnection tTCPConnection;
struct sTCPHeader
@@
-71,6
+72,13
@@
struct sTCPListener
tTCPConnection *volatile NewConnections;
};
tTCPConnection *volatile NewConnections;
};
+struct sTCPStoredPacket
+{
+ struct sTCPStoredPacket *Next;
+ Uint32 Sequence;
+ Uint8 Data[];
+};
+
struct sTCPConnection
{
struct sTCPConnection *Next;
struct sTCPConnection
{
struct sTCPConnection *Next;
@@
-83,18
+91,13
@@
struct sTCPConnection
int NextSequenceSend; //!< Next sequence value for outbound packets
int NextSequenceRcv; //!< Next expected sequence value for inbound
int NextSequenceSend; //!< Next sequence value for outbound packets
int NextSequenceRcv; //!< Next expected sequence value for inbound
- int nQueuedPackets; //!< Number of packets not ACKed
- struct {
- int Sequence;
- void *Data;
- } *QueuedPackets; //!< Non-ACKed packets
+ tTCPStoredPacket *QueuedPackets; //!< Non-ACKed packets
+ tSpinlock lRecievedPackets;
+ tTCPStoredPacket *RecievedPackets; //!< Unread Packets
+ tTCPStoredPacket *RecievedPacketsTail; //!< Unread Packets (End of list)
- int nFuturePackets; //!< Number of packets recieved that are out of sequence
- struct {
- int SequenceNum;
- void *Data;
- } **FuturePackets; //!< Out of sequence packets
+ tTCPStoredPacket *FuturePackets; //!< Out of sequence packets
union {
tIPv4 v4;
union {
tIPv4 v4;
UCC
git Repository :: git.ucc.asn.au