9#ifndef __EFI_DHCP4_IO_H__
10#define __EFI_DHCP4_IO_H__
21#define DHCP_WAIT_OFFER 3
22#define DHCP_DEFAULT_LEASE 7 * 24 * 60 * 60
23#define DHCP_SERVER_PORT 67
24#define DHCP_CLIENT_PORT 68
29#define BOOTP_REQUEST 1
35#define DHCP_MSG_DISCOVER 1
36#define DHCP_MSG_OFFER 2
37#define DHCP_MSG_REQUEST 3
38#define DHCP_MSG_DECLINE 4
41#define DHCP_MSG_RELEASE 7
42#define DHCP_MSG_INFORM 8
47#define DHCP_NOTIFY_COMPLETION 1
48#define DHCP_NOTIFY_RENEWREBIND 2
49#define DHCP_NOTIFY_ALL 3
51#define DHCP_IS_BOOTP(Parameter) (((Parameter) == NULL) || ((Parameter)->DhcpType == 0))
53#define DHCP_CONNECTED(State) \
54 (((State) == Dhcp4Bound) || ((State) == (Dhcp4Renewing)) || ((State) == Dhcp4Rebinding))
EFI_STATUS DhcpInitRequest(IN DHCP_SERVICE *DhcpSb)
EFI_STATUS DhcpSendMessage(IN DHCP_SERVICE *DhcpSb, IN EFI_DHCP4_PACKET *Seed, IN DHCP_PARAMETER *Para, IN UINT8 Type, IN UINT8 *Msg)
EFI_STATUS DhcpSetState(IN OUT DHCP_SERVICE *DhcpSb, IN INTN State, IN BOOLEAN CallUser)
VOID DhcpCleanLease(IN DHCP_SERVICE *DhcpSb)
VOID EFIAPI DhcpOnPacketSent(NET_BUF *Packet, UDP_END_POINT *EndPoint, EFI_STATUS IoStatus, VOID *Context)
VOID EFIAPI DhcpOnTimerTick(IN EFI_EVENT Event, IN VOID *Context)
VOID EFIAPI DhcpInput(NET_BUF *UdpPacket, UDP_END_POINT *EndPoint, EFI_STATUS IoStatus, VOID *Context)