Usermode/AxWin4 - (minor) Fix CColour to compile in non-native context
[tpg/acess2.git] / KernelLand / Modules / IPStack / udp.c
index 8c5c6ca..67f6056 100644 (file)
@@ -33,12 +33,14 @@ Uint16      UDP_int_FinaliseChecksum(Uint16 Value);
 
 // === GLOBALS ===
 tVFS_NodeType  gUDP_NodeType = {
+       .TypeName = "UDP",
+       .Flags = VFS_NODETYPEFLAG_STREAM,
        .Read = UDP_Channel_Read,
        .Write = UDP_Channel_Write,
        .IOCtl = UDP_Channel_IOCtl,
        .Close = UDP_Channel_Close
 };
-tMutex glUDP_Channels;
+tMutex glUDP_Channels; // TODO: Replace with a RWLock
 tUDPChannel    *gpUDP_Channels;
 
 tMutex glUDP_Ports;
@@ -189,6 +191,7 @@ tVFS_Node *UDP_Channel_Init(tInterface *Interface)
        tUDPChannel     *new;
        new = calloc( sizeof(tUDPChannel), 1 );
        new->Interface = Interface;
+       new->Node.Size = -1;
        new->Node.ImplPtr = new;
        new->Node.NumACLs = 1;
        new->Node.ACLs = &gVFS_ACL_EveryoneRW;

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