Hi all!
I am trying to get mtcp working on an old 486, just for fun. My setup:
- Compaq Prolinea 4/66
- NIC is a 3COM 3C509B-Combo
- DOS 6.22
- mTCP 2023-03-31
The problem is that the TIMESTAMP written in the mtcp.cfg file is way off in the future, in the year 2106. :)
My trouble shooting thus far:
- Packet driver is returning a MAC address
- Using pkttool I can listen and see network traffic
This Compaq has its own weird BIOS and my amateur suspicion is that the time function used in dhcp.cpp cannot read the time correctly. The BIOS setup and DOS reports the time correctly after power cycling.
Code snippet:
time_t currentTime;
time( ¤tTime );
if ( (fprintf( newFile, "DHCPVER DHCP Client version %s\n", __DATE__ ) < 0) ||
(fprintf( newFile, "TIMESTAMP ( %lu ) %s", currentTime, ctime( ¤tTime ) ) < 0) )
{
printErrno( Msg_writing_to_temp_file );
return -1;
}