git-svn-id: https://spexeah.com:8443/svn/Asuro@691 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -45,7 +45,7 @@ begin
|
||||
hdr.EthTypeLo:= 1;
|
||||
memcpy(uint32(@hdr), uint32(buffer), sizeof(TEthernetHeader));
|
||||
memcpy(uint32(p_data), uint32(buffer+sizeof(TEthernetHeader)), p_len);
|
||||
//net.send(buffer, p_len + sizeof(TEthernetHeader));
|
||||
net.send(buffer, p_len + sizeof(TEthernetHeader));
|
||||
kfree(buffer);
|
||||
end;
|
||||
end;
|
||||
|
||||
@@ -97,7 +97,7 @@ begin
|
||||
copyIPv4(@p_context^.IP.Source[0], @hdr^.Source_Protocol[0]);
|
||||
copyMAC(@p_context^.MAC.Destination[0], @hdr^.Destination_Hardware[0]);
|
||||
copyIPv4(@p_context^.IP.Destination[0], @hdr^.Destination_Protocol[0]);
|
||||
//eth2.send(buf, sizeof(TARPHeader), p_context);
|
||||
eth2.send(buf, sizeof(TARPHeader), p_context);
|
||||
end;
|
||||
kfree(buf);
|
||||
end;
|
||||
@@ -153,7 +153,7 @@ begin
|
||||
copyIPv4(@AHeader.Source_Protocol[0], @context^.IP.Destination[0]);
|
||||
copyMAC(getMAC, @context^.MAC.Source[0]);
|
||||
copyIPv4(@getIPv4Config^.Address[0], @context^.IP.Source[0]);
|
||||
//send($1, $8000, $2, context);
|
||||
send($1, $8000, $2, context);
|
||||
freePacketContext(context);
|
||||
end;
|
||||
$2:begin { ARP Reply }
|
||||
|
||||
@@ -16,7 +16,7 @@ const
|
||||
NASM_VERSION = '2.10.09';
|
||||
MAKE_VERSION = '3.81';
|
||||
COMPILE_DATE = '10/05/18';
|
||||
COMPILE_TIME = '12:12:54';
|
||||
COMPILE_TIME = '12:19:23';
|
||||
|
||||
implementation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user