]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Dhcp6Dxe/Dhcp6Impl.h
MdeModulePkg-DxeCore: rename CoreGetMemoryMapPropertiesTable
[mirror_edk2.git] / NetworkPkg / Dhcp6Dxe / Dhcp6Impl.h
index dda0cf37d56943b1babdeda2b33eb16b6ac63749..e3e755316318f747a0399c2ad055f643542920a3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Dhcp6 internal data structure and definition declaration.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -21,6 +21,7 @@
 \r
 #include <Protocol/Dhcp6.h>\r
 #include <Protocol/Udp6.h>\r
+#include <Protocol/Ip6Config.h>\r
 #include <Protocol/ServiceBinding.h>\r
 #include <Protocol/DriverBinding.h>\r
 \r
@@ -33,6 +34,7 @@
 #include <Library/UefiLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/NetLib.h>\r
+#include <Library/PrintLib.h>\r
 \r
 \r
 typedef struct _DHCP6_IA_CB    DHCP6_IA_CB;\r
@@ -244,9 +246,13 @@ struct _DHCP6_INSTANCE {
   EFI_DHCP6_PACKET              *AdSelect;\r
   UINT8                         AdPref;\r
   EFI_IPv6_ADDRESS              *Unicast;\r
-  EFI_STATUS                    UdpSts;\r
-  BOOLEAN                       InDestory;\r
+  volatile EFI_STATUS           UdpSts;\r
+  BOOLEAN                       InDestroy;\r
   BOOLEAN                       MediaPresent;\r
+  //\r
+  // StartTime is used to calculate the 'elapsed-time' option. Refer to RFC3315,\r
+  // the elapsed-time is amount of time since the client began its current DHCP transaction. \r
+  //\r
   UINT64                        StartTime;\r
 };\r
 \r
@@ -259,12 +265,12 @@ struct _DHCP6_SERVICE {
   EFI_HANDLE                    Image;\r
   EFI_SERVICE_BINDING_PROTOCOL  ServiceBinding;\r
   EFI_SIMPLE_NETWORK_PROTOCOL   *Snp;\r
+  EFI_IP6_CONFIG_PROTOCOL       *Ip6Cfg;\r
   EFI_DHCP6_DUID                *ClientId;\r
   UDP_IO                        *UdpIo;\r
   UINT32                        Xid;\r
   LIST_ENTRY                    Child;\r
   UINTN                         NumOfChild;\r
-  BOOLEAN                       InDestory;\r
 };\r
 \r
 /**\r