]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Input.h
index 1c8e8b2a15edda44b823679cccb00f20fd763465..f4d45d1613d0d95fb3c1d1141df7466d70ddac25 100644 (file)
@@ -1,13 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\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
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -17,7 +11,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define IP4_MIN_HEADLEN        20\r
 #define IP4_MAX_HEADLEN        60\r
 ///\r
-/// 8(ESP header) + 16(max IV) + 16(max padding) + 2(ESP tail) + 12(max ICV) = 54 \r
+/// 8(ESP header) + 16(max IV) + 16(max padding) + 2(ESP tail) + 12(max ICV) = 54\r
 ///\r
 #define IP4_MAX_IPSEC_HEADLEN  54\r
 \r
@@ -169,7 +163,7 @@ Ip4Demultiplex (
   @param[in]  Head               The header of the received packet.\r
   @param[in]  Packet             The data of the received packet.\r
   @param[in]  Option             Point to the IP4 packet header options.\r
-  @param[in]  OptionLen          Length of the IP4 packet header options.  \r
+  @param[in]  OptionLen          Length of the IP4 packet header options.\r
   @param[in]  IpIf               The interface to enqueue the packet to.\r
 \r
   @return The number of the IP4 children that accepts the packet\r
@@ -216,25 +210,25 @@ Ip4PacketTimerTicking (
   );\r
 \r
 /**\r
-  The work function to locate IPsec protocol to process the inbound or \r
+  The work function to locate IPsec protocol to process the inbound or\r
   outbound IP packets. The process routine handls the packet with following\r
-  actions: bypass the packet, discard the packet, or protect the packet.       \r
+  actions: bypass the packet, discard the packet, or protect the packet.\r
 \r
   @param[in]       IpSb          The IP4 service instance.\r
   @param[in, out]  Head          The The caller supplied IP4 header.\r
   @param[in, out]  Netbuf        The IP4 packet to be processed by IPsec.\r
   @param[in, out]  Options       The caller supplied options.\r
   @param[in, out]  OptionsLen    The length of the option.\r
-  @param[in]       Direction     The directionality in an SPD entry, \r
+  @param[in]       Direction     The directionality in an SPD entry,\r
                                  EfiIPsecInBound or EfiIPsecOutBound.\r
   @param[in]       Context       The token's wrap.\r
 \r
   @retval EFI_SUCCESS            The IPsec protocol is not available or disabled.\r
   @retval EFI_SUCCESS            The packet was bypassed and all buffers remain the same.\r
   @retval EFI_SUCCESS            The packet was protected.\r
-  @retval EFI_ACCESS_DENIED      The packet was discarded.  \r
+  @retval EFI_ACCESS_DENIED      The packet was discarded.\r
   @retval EFI_OUT_OF_RESOURCES   There is no suffcient resource to complete the operation.\r
-  @retval EFI_BUFFER_TOO_SMALL   The number of non-empty block is bigger than the \r
+  @retval EFI_BUFFER_TOO_SMALL   The number of non-empty block is bigger than the\r
                                  number of input data blocks when build a fragment table.\r
 \r
 **/\r