summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/IpSecDxe/IkePacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg/IpSecDxe/IkePacket.c')
-rw-r--r--NetworkPkg/IpSecDxe/IkePacket.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/NetworkPkg/IpSecDxe/IkePacket.c b/NetworkPkg/IpSecDxe/IkePacket.c
index 14dbb9d5d6..acfe079855 100644
--- a/NetworkPkg/IpSecDxe/IkePacket.c
+++ b/NetworkPkg/IpSecDxe/IkePacket.c
@@ -1,7 +1,7 @@
/** @file
IKE Packet related operation.
- Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -36,7 +36,7 @@ IkePacketAlloc (
IkePacket->RefCount = 1;
InitializeListHead (&IkePacket->PayloadList);
-
+
IkePacket->Header = (IKE_HEADER *) AllocateZeroPool (sizeof (IKE_HEADER));
if (IkePacket->Header == NULL) {
FreePool (IkePacket);
@@ -94,8 +94,8 @@ IkePacketFree (
/**
Callback funtion of NetbufFromExt()
-
- @param[in] Arg The data passed from the NetBufFromExe().
+
+ @param[in] Arg The data passed from the NetBufFromExe().
**/
VOID
@@ -111,11 +111,11 @@ IkePacketNetbufFree (
/**
Copy the NetBuf into a IKE_PACKET sturcture.
-
- Create a IKE_PACKET and fill the received IKE header into the header of IKE_PACKET
+
+ Create a IKE_PACKET and fill the received IKE header into the header of IKE_PACKET
and copy the recieved packet without IKE HEADER to the PayloadBuf of IKE_PACKET.
- @param[in] Netbuf The pointer of the Netbuf which contains the whole received
+ @param[in] Netbuf The pointer of the Netbuf which contains the whole received
IKE packet.
@return The pointer of the IKE_PACKET which contains the received packet.
@@ -174,12 +174,12 @@ Error:
@param[in] SessionCommon Pointer of related IKE_COMMON_SESSION
@param[in] IkePacket Pointer of IKE_PACKET to be copy to NetBuf
- @param[in] IkeType The IKE type to pointer the packet is for which IKE
- phase. Now it supports IKE_SA_TYPE, IKE_CHILDSA_TYPE,
+ @param[in] IkeType The IKE type to pointer the packet is for which IKE
+ phase. Now it supports IKE_SA_TYPE, IKE_CHILDSA_TYPE,
IKE_INFO_TYPE.
@return a pointer of Netbuff which contains the IKE_PACKE in network order.
-
+
**/
NET_BUF *
IkeNetbufFromPacket (
@@ -210,7 +210,7 @@ IkeNetbufFromPacket (
if (EFI_ERROR (RetStatus)) {
return NULL;
}
-
+
} else {
//
// If IKEv1 support, check it here.
@@ -224,7 +224,7 @@ IkeNetbufFromPacket (
// Get the number of the payloads
//
NET_LIST_FOR_EACH (PacketEntry, &(IkePacket)->PayloadList) {
-
+
NumPayloads++;
}
//
@@ -258,7 +258,7 @@ IkeNetbufFromPacket (
IkePacketNetbufFree,
NULL
);
-
+
FreePool (Fragments);
return Netbuf;
}