Working on UDP, removed debug from some code, fixed ARP setting hwtype to 0x100 ...
[tpg/acess2.git] / Modules / IPStack / udp.h
index be2ff64..36c36e1 100644 (file)
@@ -9,6 +9,8 @@
 #include "ipv4.h"
 
 typedef struct sUDPHeader      tUDPHeader;
+typedef struct sUDPPacket      tUDPPacket;
+typedef struct sUDPChannel     tUDPChannel;
 
 struct sUDPHeader
 {
@@ -19,4 +21,27 @@ struct sUDPHeader
        Uint8   Data[];
 };
 
+struct sUDPPacket
+{
+       struct sUDPPacket       *Next;
+       size_t  Length;
+       Uint8   Data[];
+};
+
+struct sUDPChannel
+{
+       struct sUDPChannel      *Next;
+       tInterface      *Interface;
+       Uint16  LocalPort;
+       union {
+               tIPv4   v4;
+               tIPv6   v6;
+       }       RemoteAddr;
+       Uint16  RemotePort;
+       tVFS_Node       Node;
+       tSpinlock       lQueue;
+       tUDPPacket      * volatile Queue;
+       tUDPPacket      *QueueEnd;
+};
+
 #endif

UCC git Repository :: git.ucc.asn.au