NetworkPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user