git-svn-id: https://spexeah.com:8443/svn/Asuro@717 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -47,7 +47,7 @@ begin
|
||||
push_trace('eth2.send');
|
||||
writeToLogLn(' L2: eth2.send');
|
||||
if p_context <> nil then begin
|
||||
size:= sizeof(TEthernetHeader) + p_len + pad;// + 4;
|
||||
size:= sizeof(TEthernetHeader) + p_len;// + pad;// + 4;
|
||||
buffer:= kalloc(size);
|
||||
copyMAC(@p_context^.MAC.Source[0], @hdr.src[0]);
|
||||
copyMAC(@p_context^.MAC.Destination[0], @hdr.dst[0]);
|
||||
@ -55,8 +55,8 @@ begin
|
||||
hdr.EthTypeLo:= eth_type AND $FF;
|
||||
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:= puint32((uint32(buffer) + size) - 4);
|
||||
//FCS^:= crc32(puint8(buffer), size - 4);
|
||||
net.send(buffer, size);
|
||||
kfree(buffer);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user