X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkCompatibilityPkg%2FFoundation%2FEfi%2FProtocol%2FDhcp4%2FDhcp4.h;h=a0205caf554cba90a759af11430efb7ee924c58a;hb=2c40a813fc32c5c9aa204b10b037c48f42fe6422;hp=3409ca06cbf431854593ec0e559b26f527cf4bcd;hpb=8336fd87df501f8bb26c47d4f216710fc9420ebd;p=mirror_edk2.git diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/Dhcp4/Dhcp4.h b/EdkCompatibilityPkg/Foundation/Efi/Protocol/Dhcp4/Dhcp4.h index 3409ca06cb..a0205caf55 100644 --- a/EdkCompatibilityPkg/Foundation/Efi/Protocol/Dhcp4/Dhcp4.h +++ b/EdkCompatibilityPkg/Foundation/Efi/Protocol/Dhcp4/Dhcp4.h @@ -88,18 +88,18 @@ typedef enum{ Dhcp4SendDiscover = 0x01, Dhcp4RcvdOffer = 0x02, Dhcp4SelectOffer = 0x03, - Dhcp4SendRequest = 0x05, - Dhcp4RcvdAck = 0x06, - Dhcp4RcvdNak = 0x07, - Dhcp4SendDecline = 0x08, - Dhcp4BoundCompleted = 0x09, - Dhcp4EnterRenewing = 0x0a, - Dhcp4EnterRebinding = 0x0b, - Dhcp4AddressLost = 0x0c, - Dhcp4Fail = 0x0d + Dhcp4SendRequest = 0x04, + Dhcp4RcvdAck = 0x05, + Dhcp4RcvdNak = 0x06, + Dhcp4SendDecline = 0x07, + Dhcp4BoundCompleted = 0x08, + Dhcp4EnterRenewing = 0x09, + Dhcp4EnterRebinding = 0x0a, + Dhcp4AddressLost = 0x0b, + Dhcp4Fail = 0x0c } EFI_DHCP4_EVENT; -typedef EFI_STATUS (*EFI_DHCP4_CALLBACK)( +typedef EFI_STATUS (*EFI_DHCP4_CALLBACK) ( IN EFI_DHCP4_PROTOCOL *This, IN VOID *Context, IN EFI_DHCP4_STATE CurrentState, @@ -139,23 +139,22 @@ typedef struct { } EFI_DHCP4_LISTEN_POINT; typedef struct { - OUT EFI_STATUS Status; - IN EFI_EVENT CompletionEvent; - IN EFI_IPv4_ADDRESS RemoteAddress; - IN UINT16 RemotePort; - IN EFI_IPv4_ADDRESS GatewayAddress; - IN UINT32 ListenPointCount; - IN EFI_DHCP4_LISTEN_POINT *ListenPoints; - IN UINT32 TimeoutValue; - IN EFI_DHCP4_PACKET *Packet; - OUT UINT32 ResponseCount; - OUT EFI_DHCP4_PACKET *ResponseList; -}EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN; - + EFI_STATUS Status; + EFI_EVENT CompletionEvent; + EFI_IPv4_ADDRESS RemoteAddress; + UINT16 RemotePort; + EFI_IPv4_ADDRESS GatewayAddress; + UINT32 ListenPointCount; + EFI_DHCP4_LISTEN_POINT *ListenPoints; + UINT32 TimeoutValue; + EFI_DHCP4_PACKET *Packet; + UINT32 ResponseCount; + EFI_DHCP4_PACKET *ResponseList; +} EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN; typedef EFI_STATUS -(EFIAPI *EFI_DHCP4_GET_MODE_DATA)( +(EFIAPI *EFI_DHCP4_GET_MODE_DATA) ( IN EFI_DHCP4_PROTOCOL *This, OUT EFI_DHCP4_MODE_DATA *Dhcp4ModeData ); @@ -176,8 +175,8 @@ typedef EFI_STATUS typedef EFI_STATUS -(EFIAPI *EFI_DHCP4_RENEW) ( - IN EFI_DHCP4_PROTOCOL *This, +(EFIAPI *EFI_DHCP4_RENEW_REBIND) ( + IN EFI_DHCP4_PROTOCOL *This, IN BOOLEAN RebindRequest, IN EFI_EVENT CompletionEvent OPTIONAL ); @@ -201,7 +200,7 @@ EFI_STATUS IN UINT32 DeleteCount, IN UINT8 *DeleteList OPTIONAL, IN UINT32 AppendCount, - IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL, + IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL, OUT EFI_DHCP4_PACKET **NewPacket ); @@ -212,7 +211,6 @@ EFI_STATUS IN EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN *Token ); - typedef EFI_STATUS (EFIAPI *EFI_DHCP4_PARSE) ( @@ -226,7 +224,7 @@ typedef struct _EFI_DHCP4_PROTOCOL { EFI_DHCP4_GET_MODE_DATA GetModeData; EFI_DHCP4_CONFIGURE Configure; EFI_DHCP4_START Start; - EFI_DHCP4_RENEW RenewRebind; + EFI_DHCP4_RENEW_REBIND RenewRebind; EFI_DHCP4_RELEASE Release; EFI_DHCP4_STOP Stop; EFI_DHCP4_BUILD Build;