]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/IpSecDxe/IkePacket.c
NetworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / NetworkPkg / IpSecDxe / IkePacket.c
index 14dbb9d5d67ec56f08b19168b865a2e6e9705b23..a4f67ac9be718b8cffc2e27329337b839b6b155c 100644 (file)
@@ -1,15 +1,9 @@
 /** @file\r
   IKE Packet related operation.\r
 \r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 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
@@ -36,7 +30,7 @@ IkePacketAlloc (
 \r
   IkePacket->RefCount = 1;\r
   InitializeListHead (&IkePacket->PayloadList);\r
-  \r
+\r
   IkePacket->Header = (IKE_HEADER *) AllocateZeroPool (sizeof (IKE_HEADER));\r
   if (IkePacket->Header == NULL) {\r
     FreePool (IkePacket);\r
@@ -94,8 +88,8 @@ IkePacketFree (
 \r
 /**\r
   Callback funtion of NetbufFromExt()\r
-  \r
-  @param[in]  Arg  The data passed from the NetBufFromExe(). \r
+\r
+  @param[in]  Arg  The data passed from the NetBufFromExe().\r
 \r
 **/\r
 VOID\r
@@ -111,11 +105,11 @@ IkePacketNetbufFree (
 \r
 /**\r
   Copy the NetBuf into a IKE_PACKET sturcture.\r
-  \r
-  Create a IKE_PACKET and fill the received IKE header into the header of IKE_PACKET \r
+\r
+  Create a IKE_PACKET and fill the received IKE header into the header of IKE_PACKET\r
   and copy the recieved packet without IKE HEADER to the PayloadBuf of IKE_PACKET.\r
 \r
-  @param[in]  Netbuf      The pointer of the Netbuf which contains the whole received \r
+  @param[in]  Netbuf      The pointer of the Netbuf which contains the whole received\r
                           IKE packet.\r
 \r
   @return The pointer of the IKE_PACKET which contains the received packet.\r
@@ -174,12 +168,12 @@ Error:
 \r
   @param[in]  SessionCommon  Pointer of related IKE_COMMON_SESSION\r
   @param[in]  IkePacket      Pointer of IKE_PACKET to be copy to NetBuf\r
-  @param[in]  IkeType        The IKE type to pointer the packet is for which IKE \r
-                             phase. Now it supports IKE_SA_TYPE, IKE_CHILDSA_TYPE, \r
+  @param[in]  IkeType        The IKE type to pointer the packet is for which IKE\r
+                             phase. Now it supports IKE_SA_TYPE, IKE_CHILDSA_TYPE,\r
                              IKE_INFO_TYPE.\r
 \r
   @return a pointer of Netbuff which contains the IKE_PACKE in network order.\r
-  \r
+\r
 **/\r
 NET_BUF *\r
 IkeNetbufFromPacket (\r
@@ -210,7 +204,7 @@ IkeNetbufFromPacket (
       if (EFI_ERROR (RetStatus)) {\r
         return NULL;\r
       }\r
-      \r
+\r
     } else {\r
       //\r
       // If IKEv1 support, check it here.\r
@@ -224,7 +218,7 @@ IkeNetbufFromPacket (
   // Get the number of the payloads\r
   //\r
   NET_LIST_FOR_EACH (PacketEntry, &(IkePacket)->PayloadList) {\r
-  \r
+\r
     NumPayloads++;\r
   }\r
   //\r
@@ -258,7 +252,7 @@ IkeNetbufFromPacket (
              IkePacketNetbufFree,\r
              NULL\r
              );\r
-  \r
+\r
   FreePool (Fragments);\r
   return Netbuf;\r
 }\r