From 6e19836f223add173ee5bd82339b4c243869e9b9 Mon Sep 17 00:00:00 2001 From: tye1 Date: Mon, 25 Jan 2010 03:15:50 +0000 Subject: [PATCH] Define EFI_PXE_BASE_CODE_DHCPV6_PACKET and EFI_PXE_BASE_CODE_PACKET for PXE over IPv6. It's not consistent with the current UEFI2.3 spec, but it's supposed to updated in the next version. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9802 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Protocol/PxeBaseCode.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/Protocol/PxeBaseCode.h b/MdePkg/Include/Protocol/PxeBaseCode.h index b4b8f0b0e5..f6b00d383c 100644 --- a/MdePkg/Include/Protocol/PxeBaseCode.h +++ b/MdePkg/Include/Protocol/PxeBaseCode.h @@ -2,7 +2,7 @@ EFI PXE Base Code Protocol definitions, which is used to access PXE-compatible devices for network access and network booting. - Copyright (c) 2006 - 2009, Intel Corporation + Copyright (c) 2006 - 2010, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -218,15 +218,28 @@ typedef struct { UINT8 DhcpOptions[56]; } EFI_PXE_BASE_CODE_DHCPV4_PACKET; +/// +/// Note: EFI_PXE_BASE_CODE_DHCPV6_PACKET and EFI_PXE_BASE_CODE_PACKET are not +/// consistent with the current UEFI2.3 specification. It's supposed that +/// they will be consistent in the next version. +/// + +/// +/// DHCPV6 Packet structure. +/// +typedef struct { + UINT32 MessageType:8; + UINT32 TransactionId:24; + UINT8 DhcpOptions[1024]; +} EFI_PXE_BASE_CODE_DHCPV6_PACKET; + /// /// Packet structure /// typedef union { UINT8 Raw[1472]; EFI_PXE_BASE_CODE_DHCPV4_PACKET Dhcpv4; - // - // EFI_PXE_BASE_CODE_DHCPV6_PACKET Dhcpv6; - // + EFI_PXE_BASE_CODE_DHCPV6_PACKET Dhcpv6; } EFI_PXE_BASE_CODE_PACKET; // -- 2.39.2