Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
57:e0fb648acf48
Parent:
54:84ef2b29cf7e
Child:
61:aad055f1b0d1
diff -r 35117a8b5c65 -r e0fb648acf48 tcp/tcb.h
--- a/tcp/tcb.h	Tue Nov 14 17:43:08 2017 +0000
+++ b/tcp/tcb.h	Tue Nov 28 17:05:46 2017 +0000
@@ -1,17 +1,19 @@
-#define TCB_CLOSED       0
+#define TCB_EMPTY        0
 #define TCB_SYN_RECEIVED 1
 #define TCB_ESTABLISHED  2
-#define TCB_CLOSING      3
+#define TCB_FIN_WAIT     3
+#define TCB_ACK_WAIT     4
 
 struct tcb
 {
     int      state;
+    bool     hadFin;
     uint16_t mss;
     uint16_t port;
-    uint32_t locIsn;
-    uint32_t remIsn;
-    uint32_t locSeq;
-    uint32_t remSeq;
+    uint32_t sendIsn;
+    uint32_t recvIsn;
+    uint32_t sentBytes;
+    uint32_t recdBytes;
     uint32_t elapsed;
      int32_t todo;
 };