mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 15:29:18 +00:00
Updated network related code so now it should work as expected
This commit is contained in:
@ -143,23 +143,22 @@ namespace NetworkDHCP
|
||||
|
||||
void CreatePacket(DHCPHeader *Packet, uint8_t MessageType, uint32_t RequestIP);
|
||||
void *GetOption(DHCPHeader *Packet, uint8_t Type);
|
||||
void OnUDPPacketReceived(NetworkUDP::Socket *Socket, uint8_t *Data, uint64_t Length);
|
||||
|
||||
public:
|
||||
/** @brief IP address (Little-endian) */
|
||||
InternetProtocol4 IP = {.Address = {0x0, 0x0, 0x0, 0x0}};
|
||||
InternetProtocol IP = {};
|
||||
/** @brief Gateway address (Little-endian) */
|
||||
InternetProtocol4 Gateway = {.Address = {0x0, 0x0, 0x0, 0x0}};
|
||||
InternetProtocol Gateway = {};
|
||||
/** @brief Subnet mask (Little-endian) */
|
||||
InternetProtocol4 SubNetworkMask = {.Address = {0x0, 0x0, 0x0, 0x0}};
|
||||
InternetProtocol SubNetworkMask = {};
|
||||
/** @brief DNS server address (Little-endian) */
|
||||
InternetProtocol4 DomainNameSystem = {.Address = {0x0, 0x0, 0x0, 0x0}};
|
||||
InternetProtocol DomainNameSystem = {};
|
||||
|
||||
DHCP(NetworkUDP::Socket *Socket, NetworkInterfaceManager::DeviceInterface *Interface);
|
||||
~DHCP();
|
||||
void Request();
|
||||
void Request(InternetProtocol4 IP);
|
||||
|
||||
virtual void OnUDPPacketReceived(NetworkUDP::Socket *Socket, uint8_t *Data, uint64_t Length);
|
||||
void Request(InternetProtocol IP);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user