git-svn-id: https://spexeah.com:8443/svn/Asuro@701 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
2feb128853
commit
69c3ed24b3
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/asuro.ppu
BIN
lib/asuro.ppu
Binary file not shown.
BIN
lib/eth2.ppu
BIN
lib/eth2.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
BIN
lib/shell.ppu
BIN
lib/shell.ppu
Binary file not shown.
BIN
lib/terminal.ppu
BIN
lib/terminal.ppu
Binary file not shown.
@ -37,6 +37,7 @@ var
|
|||||||
buffer : void;
|
buffer : void;
|
||||||
hdr : TEthernetHeader;
|
hdr : TEthernetHeader;
|
||||||
pad : sint32;
|
pad : sint32;
|
||||||
|
size : uint32;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
pad:= 46 - p_len;
|
pad:= 46 - p_len;
|
||||||
@ -44,14 +45,15 @@ begin
|
|||||||
push_trace('eth2.send');
|
push_trace('eth2.send');
|
||||||
writeToLogLn(' L2: eth2.send');
|
writeToLogLn(' L2: eth2.send');
|
||||||
if p_context <> nil then begin
|
if p_context <> nil then begin
|
||||||
buffer:= kalloc(pad + p_len + sizeof(TEthernetHeader) + pad);
|
size:= pad + p_len + sizeof(TEthernetHeader) + pad;
|
||||||
|
buffer:= kalloc(size);
|
||||||
copyMAC(@p_context^.MAC.Source[0], @hdr.src[0]);
|
copyMAC(@p_context^.MAC.Source[0], @hdr.src[0]);
|
||||||
copyMAC(@p_context^.MAC.Destination[0], @hdr.dst[0]);
|
copyMAC(@p_context^.MAC.Destination[0], @hdr.dst[0]);
|
||||||
hdr.EthTypeHi:= eth_type SHR 8;
|
hdr.EthTypeHi:= eth_type SHR 8;
|
||||||
hdr.EthTypeLo:= eth_type AND $FF;
|
hdr.EthTypeLo:= eth_type AND $FF;
|
||||||
memcpy(uint32(@hdr), uint32(buffer), sizeof(TEthernetHeader));
|
memcpy(uint32(@hdr), uint32(buffer), sizeof(TEthernetHeader));
|
||||||
memcpy(uint32(p_data), uint32(buffer)+sizeof(TEthernetHeader), p_len);
|
memcpy(uint32(p_data), uint32(buffer)+sizeof(TEthernetHeader), p_len);
|
||||||
net.send(buffer, p_len + sizeof(TEthernetHeader));
|
net.send(buffer, size);
|
||||||
kfree(buffer);
|
kfree(buffer);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -9,14 +9,14 @@ const
|
|||||||
VERSION_SUB = '1';
|
VERSION_SUB = '1';
|
||||||
REVISION = '677';
|
REVISION = '677';
|
||||||
RELEASE = 'ia';
|
RELEASE = 'ia';
|
||||||
LINE_COUNT = 27907;
|
LINE_COUNT = 27909;
|
||||||
FILE_COUNT = 89;
|
FILE_COUNT = 89;
|
||||||
DRIVER_COUNT = 32;
|
DRIVER_COUNT = 32;
|
||||||
FPC_VERSION = '2.6.4';
|
FPC_VERSION = '2.6.4';
|
||||||
NASM_VERSION = '2.10.09';
|
NASM_VERSION = '2.10.09';
|
||||||
MAKE_VERSION = '3.81';
|
MAKE_VERSION = '3.81';
|
||||||
COMPILE_DATE = '10/05/18';
|
COMPILE_DATE = '10/05/18';
|
||||||
COMPILE_TIME = '14:53:45';
|
COMPILE_TIME = '14:57:03';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user