]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6Impl.c
DynamicTablesPkg: Add EDK2 Core CI support
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Impl.c
index 365495a5e448d680e10344965cf3b4a716afd72a..826a5c252f1ade7ade948a108abf109eadd719e0 100644 (file)
@@ -1,15 +1,10 @@
 /** @file\r
   Implementation of EFI_IP6_PROTOCOL protocol interfaces.\r
 \r
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
+  Copyright (c) 2009 - 2016, 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
@@ -293,7 +288,7 @@ Ip6IsIllegalProtocol (
 }\r
 \r
 /**\r
-  Intiialize the IP6_PROTOCOL structure to the unconfigured states.\r
+  Initialize the IP6_PROTOCOL structure to the unconfigured states.\r
 \r
   @param[in]       IpSb                   The IP6 service instance.\r
   @param[in, out]  IpInstance             The IP6 child instance.\r
@@ -609,7 +604,7 @@ Ip6ServiceConfigMnp (
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. The EFI IPv6\r
                                  Protocol driver instance was not opened.\r
   @retval EFI_UNSUPPORTED        Default protocol specified through\r
-                                 Ip6ConfigData.DefaulProtocol isn't supported.\r
+                                 Ip6ConfigData.DefaultProtocol isn't supported.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -705,11 +700,6 @@ EfiIp6Configure (
   //\r
   Ip6ServiceConfigMnp (IpInstance->Service, FALSE);\r
 \r
-  //\r
-  // Update the variable data.\r
-  //\r
-  Ip6SetVariableData (IpInstance->Service);\r
-\r
 Exit:\r
   gBS->RestoreTPL (OldTpl);\r
   return Status;\r
@@ -797,7 +787,7 @@ ON_EXIT:
   the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the\r
   configured station address.\r
 \r
-  The default route is added with Destination and PrefixLegth both set to all zeros. The\r
+  The default route is added with Destination and PrefixLength both set to all zeros. The\r
   default route matches all destination IPv6 addresses that do not match any other routes.\r
 \r
   All EFI IPv6 Protocol instances share a routing table.\r
@@ -846,7 +836,7 @@ EfiIp6Routes (
   EFI_TPL                   OldTpl;\r
   IP6_SERVICE               *IpSb;\r
 \r
-  if ((This == NULL) || (PrefixLength >= IP6_PREFIX_NUM)) {\r
+  if ((This == NULL) || (PrefixLength > IP6_PREFIX_MAX)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -1011,7 +1001,7 @@ Exit:
   @param[in]  Map                The container of either user's transmit or receive\r
                                  token.\r
   @param[in]  Item               Current item to check against.\r
-  @param[in]  Context            The Token to check againist.\r
+  @param[in]  Context            The Token to check against.\r
 \r
   @retval EFI_ACCESS_DENIED      The token or event has already been enqueued in IP\r
   @retval EFI_SUCCESS            The current item isn't the same token/event as the\r
@@ -1459,7 +1449,7 @@ Exit:
   is signaled.\r
 \r
   Current Udp implementation creates an IP child for each Udp child.\r
-  It initates a asynchronous receive immediately no matter whether\r
+  It initiates a asynchronous receive immediately no matter whether\r
   there is no mapping or not. Therefore, disable the returning EFI_NO_MAPPING for now.\r
   To enable it, the following check must be performed:\r
 \r
@@ -1766,7 +1756,6 @@ EfiIp6Cancel (
   )\r
 {\r
   IP6_PROTOCOL              *IpInstance;\r
-  IP6_SERVICE               *IpSb;\r
   EFI_STATUS                Status;\r
   EFI_TPL                   OldTpl;\r
 \r
@@ -1775,7 +1764,6 @@ EfiIp6Cancel (
   }\r
 \r
   IpInstance = IP6_INSTANCE_FROM_PROTOCOL (This);\r
-  IpSb       = IpInstance->Service;\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r