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

This commit is contained in:
kieron
2018-05-10 15:56:01 +00:00
parent 9fb4567690
commit d59867d49a
12 changed files with 3 additions and 3 deletions

View File

@ -43,11 +43,11 @@ var
begin
pad:= 46 - p_len;
if pad < 0 then pad:= 0;
if pad < 0 then pad:= 4;
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;
buffer:= kalloc(size);
copyMAC(@p_context^.MAC.Source[0], @hdr.src[0]);
copyMAC(@p_context^.MAC.Destination[0], @hdr.dst[0]);