// Check for remote address restriction
if(chan->RemoteMask)
{
- if(chan->Remote.AddrType != Interface->Type) continue;
+ if(chan->Remote.AddrType != Interface->Type)
+ continue;
if(!IPStack_CompareAddress(Interface->Type, Address,
&chan->Remote.Addr, chan->RemoteMask)
)
else
chan->QueueEnd = chan->Queue = pack;
SHORTREL(&chan->lQueue);
+ VFS_MarkAvaliable(&chan->Node, 1);
Mutex_Release(&glUDP_Channels);
return 1;
}
tUDPEndpoint *ep;
int ofs;
- if(chan->LocalPort == 0) return 0;
+ if(chan->LocalPort == 0) {
+ Log_Notice("UDP", "Channel %p sent with no local port", chan);
+ return 0;
+ }
while(chan->Queue == NULL) Threads_Yield();
ofs = 4 + IPStack_GetAddressSize(pack->Remote.AddrType);
if(Length < ofs) {
free(pack);
+ Log_Notice("UDP", "Insuficient space for header in buffer (%i < %i)", (int)Length, ofs);
return 0;
}
DRV_IOCTLNAMES,
"getset_localport",
"getset_remoteport",
- "set_remotemask",
+ "getset_remotemask",
"set_remoteaddr",
NULL
};