SUBMAKE = $(MAKE) --no-print-directory
MODULES += $(DYNMODS)
-USRLIBS = ld-acess.so libacess.so libgcc.so libc.so
+USRLIBS = crt0.o ld-acess.so libacess.so libgcc.so libc.so
USRAPPS = init login CLIShell cat ls mount ifconfig
ALL_MODULES = $(addprefix all-,$(MODULES))
Warning("[ICMP ] Code == %i for ICMP Echo Reply, should be 0", hdr->Code);
return ;
}
- if(hdr->ID != ~hdr->Sequence) {
+ if(hdr->ID != (Uint16)~hdr->Sequence) {
Warning("[ICMP ] ID and Sequence values do not match");
return ;
}
*/
int ICMP_Ping(tInterface *Interface, tIPv4 Addr)
{
- //Sint64 ts;
+ Sint64 ts;
+ Sint64 end;
char buf[32] = "\x8\0\0\0\0\0\0\0Acess2 I"
"P/TCP Stack 1.0\0";
tICMPHeader *hdr = (void*)buf;
hdr->Checksum = htons( IPv4_Checksum(hdr, sizeof(buf)) );
IPv4_SendPacket(Interface, Addr, 1, i, sizeof(buf), buf);
- return -1;
+ ts = now();
+ end = ts + Interface->TimeoutDelay;
+ while( !gICMP_PingSlots[i].bArrived && now() < end) Threads_Yield();
+
+ ts = now() - ts;
+ if(ts > Interface->TimeoutDelay)
+ return -1;
+
+ return (int)ts;
}
/Usermode/include - Required include files for the shared libraries.
=== Building ===
+Required Tools: GNU Toolchain (GCC,Gas,binutils), NASM, mtools, GNU calc
Compiling Acess is relatively simple (at the moment)
First edit /Makefile.cfg and set the build programs (making sure they match
the architecture you are building for).