]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.h
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 The DHCP4 protocol implementation.
24 #ifndef __EFI_DHCP4_IO_H__
25 #define __EFI_DHCP4_IO_H__
29 #include <Protocol/ServiceBinding.h>
31 #include <Library/NetLib.h>
32 #include <Library/UdpIoLib.h>
33 #include <Library/BaseMemoryLib.h>
34 #include <Library/MemoryAllocationLib.h>
38 DHCP_WAIT_OFFER
= 3, // Time to wait the offers
39 DHCP_DEFAULT_LEASE
= 7 *24 *60 *60, // Seven days as default.
40 DHCP_SERVER_PORT
= 67,
41 DHCP_CLIENT_PORT
= 68,
44 // BOOTP header "op" field
52 DHCP_MSG_DISCOVER
= 1,
62 // DHCP notify user type
64 DHCP_NOTIFY_COMPLETION
= 1,
65 DHCP_NOTIFY_RENEWREBIND
,
69 #define DHCP_IS_BOOTP(Parameter) (((Parameter) == NULL) || ((Parameter)->DhcpType == 0))
71 #define DHCP_CONNECTED(State) \
72 (((State) == Dhcp4Bound) || ((State) == (Dhcp4Renewing)) || ((State) == Dhcp4Rebinding))
76 IN DHCP_SERVICE
*DhcpSb
,
83 IN DHCP_SERVICE
*DhcpSb
,
84 IN EFI_DHCP4_PACKET
*Seed
,
85 IN DHCP_PARAMETER
*Para
,
107 IN DHCP_SERVICE
*DhcpSb
112 IN DHCP_SERVICE
*DhcpSb