]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Dhcp6Dxe/Dhcp6Impl.h
NetworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / NetworkPkg / Dhcp6Dxe / Dhcp6Impl.h
index 86ef8afb292263428ae7510875354015013d2fb8..f88b00ad0482a01ed230449e62388b1bb2a562d8 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
   Dhcp6 internal data structure and definition declaration.\r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, 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
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -37,6 +31,7 @@
 #include <Library/BaseLib.h>\r
 #include <Library/NetLib.h>\r
 #include <Library/PrintLib.h>\r
+#include <Guid/ZeroGuid.h>\r
 \r
 \r
 typedef struct _DHCP6_IA_CB    DHCP6_IA_CB;\r
@@ -61,11 +56,12 @@ typedef struct _DHCP6_INSTANCE DHCP6_INSTANCE;
 #define DHCP6_PORT_CLIENT         546\r
 #define DHCP6_PORT_SERVER         547\r
 \r
+#define DHCP_CHECK_MEDIA_WAITING_TIME    EFI_TIMER_PERIOD_SECONDS(20)\r
+\r
 #define DHCP6_INSTANCE_FROM_THIS(Instance) CR ((Instance), DHCP6_INSTANCE, Dhcp6, DHCP6_INSTANCE_SIGNATURE)\r
 #define DHCP6_SERVICE_FROM_THIS(Service)   CR ((Service), DHCP6_SERVICE, ServiceBinding, DHCP6_SERVICE_SIGNATURE)\r
 \r
 extern EFI_IPv6_ADDRESS           mAllDhcpRelayAndServersAddress;\r
-extern EFI_IPv6_ADDRESS           mAllDhcpServersAddress;\r
 extern EFI_DHCP6_PROTOCOL         gDhcp6ProtocolTemplate;\r
 \r
 //\r
@@ -129,7 +125,7 @@ struct _DHCP6_INSTANCE {
   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
+  // the elapsed-time is amount of time since the client began its current DHCP transaction.\r
   //\r
   UINT64                        StartTime;\r
 };\r