]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6Option.c
NetworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Option.c
index 9a91fd7cd1a8d0ef43af792119fd7aeed3caa53c..88111e3c24f511d1fcd34b7114385f0a1ff8a8ea 100644 (file)
@@ -3,13 +3,7 @@
 \r
   Copyright (c) 2009 - 2010, 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
@@ -18,7 +12,7 @@
 /**\r
   Validate the IP6 option format for both the packets we received\r
   and that we will transmit. It will compute the ICMPv6 error message fields\r
-  if the option is malformated.\r
+  if the option is malformatted.\r
 \r
   @param[in]  IpSb              The IP6 service data.\r
   @param[in]  Packet            The to be validated packet.\r
@@ -29,7 +23,7 @@
 \r
 \r
   @retval TRUE     The option is properly formatted.\r
-  @retval FALSE    The option is malformated.\r
+  @retval FALSE    The option is malformatted.\r
 \r
 **/\r
 BOOLEAN\r
@@ -126,7 +120,7 @@ Ip6IsOptionValid (
   @param[in]  OptionLen         The length of the whole option.\r
 \r
   @retval TRUE     The option is properly formatted.\r
-  @retval FALSE    The option is malformated.\r
+  @retval FALSE    The option is malformatted.\r
 \r
 **/\r
 BOOLEAN\r
@@ -231,7 +225,7 @@ Ip6IsValidProtocol (
 /**\r
   Validate the IP6 extension header format for both the packets we received\r
   and that we will transmit. It will compute the ICMPv6 error message fields\r
-  if the option is mal-formated.\r
+  if the option is mal-formatted.\r
 \r
   @param[in]  IpSb          The IP6 service instance. This is an optional parameter.\r
   @param[in]  Packet        The data of the packet. Ignored if NULL.\r
@@ -252,8 +246,8 @@ Ip6IsValidProtocol (
   @param[out] Fragmented    Indicate whether the packet is fragmented.\r
                             This is an optional parameter that may be NULL.\r
 \r
-  @retval     TRUE          The option is properly formated.\r
-  @retval     FALSE         The option is malformated.\r
+  @retval     TRUE          The option is properly formatted.\r
+  @retval     FALSE         The option is malformatted.\r
 \r
 **/\r
 BOOLEAN\r
@@ -436,7 +430,7 @@ Ip6IsExtsValid (
 \r
       //\r
       // RFC2460, ICMP Parameter Problem message with code 0 should be sent\r
-      // if the length of a fragment is not a multiple of 8 octects and the M\r
+      // if the length of a fragment is not a multiple of 8 octets and the M\r
       // flag of that fragment is 1, pointing to the Payload length field of the\r
       // fragment packet.\r
       //\r
@@ -606,7 +600,7 @@ Ip6FillHopByHop (
   @param[in]  ExtHdrsLen       The length of the extension headers.\r
   @param[in]  FragmentOffset   The fragment offset of the data following the header.\r
   @param[out] UpdatedExtHdrs   The updated ExtHdrs with Fragment header inserted.\r
-                               It's caller's responsiblity to free this buffer.\r
+                               It's caller's responsibility to free this buffer.\r
 \r
   @retval EFI_OUT_OF_RESOURCES Failed to finish the operation due to lake of\r
                                resource.\r