git-svn-id: https://spexeah.com:8443/svn/Asuro@704 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
kieron
2018-05-10 14:32:59 +00:00
parent 63c2b15181
commit ad10fa1a19
15 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ interface
uses
lmemorymanager, util,
tracer,
nettypes, netutils,
nettypes, netutils, terminal,
net,
netlog,
console,
@ -56,7 +56,8 @@ begin
memcpy(uint32(@hdr), uint32(buffer), sizeof(TEthernetHeader));
memcpy(uint32(p_data), uint32(buffer)+sizeof(TEthernetHeader), p_len);
FCS:= puint32((uint32(buffer) + size) - 4);
FCS^:= crc32(puint8(buffer), size - 4);
FCS^:= crc32(puint8(buffer), size - 5);
//writehexlnWND(FCS^, getTerminalHWND);
net.send(buffer, size);
kfree(buffer);
end;