Show more debug messages

This commit is contained in:
Alex
2023-02-18 04:07:40 +02:00
parent 20064c05ff
commit ad1c2214ef
9 changed files with 47 additions and 14 deletions

View File

@ -7,6 +7,7 @@ namespace NetworkDHCP
{
DHCP::DHCP(NetworkUDP::Socket *Socket, NetworkInterfaceManager::DeviceInterface *Interface)
{
debug("DHCP interface %#lx created.", this);
this->UDPSocket = Socket;
this->Interface = Interface;
Socket->LocalPort = b16(68);
@ -29,6 +30,7 @@ namespace NetworkDHCP
DHCP::~DHCP()
{
debug("DHCP interface %#lx destroyed.", this);
}
void DHCP::CreatePacket(DHCPHeader *Packet, uint8_t MessageType, uint32_t RequestIP)