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

This commit is contained in:
kieron
2018-05-10 16:22:15 +00:00
parent d59867d49a
commit c8e275a34d
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:= 4;
if pad < 0 then pad:= 0;
push_trace('eth2.send');
writeToLogLn(' L2: eth2.send');
if p_context <> nil then begin
size:= sizeof(TEthernetHeader) + p_len + pad;
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]);