DHCP client support added
class CDHCPClient added sample/18-ntptime and sample/20-tcpsimple use DHCP by default now If CNetSubSystem::CNetSubSystem() is called with pIPAddress = 0 DHCP is enabled. CNetSubSystem::Initialize() starts the DHCP client task then and waits until an IP address lease is available. So when CKernel::Run() is called the network is already running. The network stack can send/receive broadcasts to/from 255.255.255.255 (HW address ff:ff:ff:ff:ff:ff) now. The source port for outgoing traffic (also with UDP) can be selected with CSocket::Bind() now. CTimer::GetUptime() added which returns the number of seconds since system start. This value is continous and will not "jump" like the system time returned by CTimer::GetTime() when it is updated.
R
rsta2 committed
ff3f5ff982cd84eaa2b7659c8e29d03a8abef243
Parent: 49a42db