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
Kernel/IPStack - Added lock to buffer structure so drivers can do async Tx
[tpg/acess2.git]
/
KernelLand
/
Modules
/
IPStack
/
udp.c
diff --git
a/KernelLand/Modules/IPStack/udp.c
b/KernelLand/Modules/IPStack/udp.c
index
1d80569
..
eb8281b
100644
(file)
--- a/
KernelLand/Modules/IPStack/udp.c
+++ b/
KernelLand/Modules/IPStack/udp.c
@@
-117,10
+117,8
@@
void UDP_GetPacket(tInterface *Interface, void *Address, int Length, void *Buffe
{
tUDPHeader *hdr = Buffer;
- Log_Debug("UDP", "hdr->SourcePort = %i", ntohs(hdr->SourcePort));
- Log_Debug("UDP", "hdr->DestPort = %i", ntohs(hdr->DestPort));
- Log_Debug("UDP", "hdr->Length = %i", ntohs(hdr->Length));
- Log_Debug("UDP", "hdr->Checksum = 0x%x", ntohs(hdr->Checksum));
+ Log_Debug("UDP", "%i bytes :%i->:%i (Cksum 0x%04x)",
+ ntohs(hdr->Length), ntohs(hdr->SourcePort), ntohs(hdr->Length), ntohs(hdr->Checksum));
// Check registered connections
Mutex_Acquire(&glUDP_Channels);
@@
-268,7
+266,7
@@
size_t UDP_Channel_Write(tVFS_Node *Node, off_t Offset, size_t Length, const voi
UDP_SendPacketTo(chan, ep->AddrType, &ep->Addr, ep->Port, data, (size_t)Length - ofs);
- return
0
;
+ return
Length
;
}
/**
UCC
git Repository :: git.ucc.asn.au