Skip to content

Commit

Permalink
NetworkPkg: Clean up source files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lgao4 committed Jun 28, 2018
1 parent 9095d37 commit f75a7f5
Show file tree
Hide file tree
Showing 180 changed files with 3,640 additions and 3,640 deletions.
4 changes: 2 additions & 2 deletions NetworkPkg/Application/IpsecConfig/Indexer.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
The implementation of construct ENTRY_INDEXER in IpSecConfig application.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -50,7 +50,7 @@ ConstructSpdIndexer (
if (ValueStr == NULL) {
return EFI_INVALID_PARAMETER;
}

Value64 = StrToUInteger (ValueStr, &Status);
if (!EFI_ERROR (Status)) {
Indexer->Index = (UINTN) Value64;
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Application/IpsecConfig/IpSecConfig.inf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## @file
# Shell application IpSecConfig.
#
#
# This application is used to set and retrieve security and policy related information
# for the EFI IPsec protocol driver.
#
# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2009 - 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
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Application/IpsecConfig/IpSecConfig.uni
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// This application is used to set and retrieve security and policy related information
// for the EFI IPsec protocol driver.
//
// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2009 - 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
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php.
//
//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
Expand Down
6 changes: 3 additions & 3 deletions NetworkPkg/Application/IpsecConfig/IpSecConfigExtra.uni
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// /** @file
// IpSecConfig Localized Strings and Content
//
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2013 - 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
Expand All @@ -13,8 +13,8 @@
//
// **/

#string STR_PROPERTIES_MODULE_NAME
#language en-US
#string STR_PROPERTIES_MODULE_NAME
#language en-US
"IpSec Config App"


4 changes: 2 additions & 2 deletions NetworkPkg/Application/IpsecConfig/Match.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @file
The internal structure and function declaration of
The internal structure and function declaration of
match policy entry function in IpSecConfig application.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Application/IpsecConfig/PolicyEntryOperation.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
The implementation of policy entry operation function in IpSecConfig application.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -1875,7 +1875,7 @@ EditOperatePolicyEntry (
Selector
);
ASSERT_EFI_ERROR (Status);

if (CreateNew) {
//
// Edit the entry to a new one. So, we need delete the old entry.
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Application/VConfig/VConfig.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Shell application for VLAN configuration.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -618,7 +618,7 @@ VlanConfigMain (
EFI_STATUS Status;

mImageHandle = ImageHandle;

//
// Retrieve HII package list from ImageHandle
//
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Application/VConfig/VConfig.uni
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
//
// It is shell application which is used to get and set VLAN configuration.
//
// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2009 - 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
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php.
//
//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
Expand Down
6 changes: 3 additions & 3 deletions NetworkPkg/Application/VConfig/VConfigExtra.uni
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// /** @file
// VConfig Localized Strings and Content
//
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2013 - 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
Expand All @@ -13,8 +13,8 @@
//
// **/

#string STR_PROPERTIES_MODULE_NAME
#language en-US
#string STR_PROPERTIES_MODULE_NAME
#language en-US
"Vlan Config App"


24 changes: 12 additions & 12 deletions NetworkPkg/Dhcp6Dxe/ComponentName.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
UEFI Component Name(2) protocol implementation for Dhcp6 driver.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -247,10 +247,10 @@ Dhcp6ComponentNameGetDriverName (
@param Dhcp6[in] A pointer to the EFI_DHCP6_PROTOCOL.
@retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully.
@retval EFI_INVALID_PARAMETER The input parameter is invalid.
**/
EFI_STATUS
UpdateName (
Expand All @@ -272,12 +272,12 @@ UpdateName (
if (EFI_ERROR (Status)) {
return Status;
}

if (gDhcp6ControllerNameTable != NULL) {
FreeUnicodeStringTable (gDhcp6ControllerNameTable);
gDhcp6ControllerNameTable = NULL;
}

if (Dhcp6ModeData.Ia == NULL) {
HandleName = L"DHCPv6 (No configured IA)";
} else {
Expand All @@ -304,7 +304,7 @@ UpdateName (
if (EFI_ERROR (Status)) {
return Status;
}

return AddUnicodeString2 (
"en",
gDhcp6ComponentName2.SupportedLanguages,
Expand Down Expand Up @@ -401,13 +401,13 @@ Dhcp6ComponentNameGetControllerName (
if (ChildHandle == NULL) {
return EFI_UNSUPPORTED;
}
//
// Make sure this driver produced ChildHandle
//

//
// Make sure this driver produced ChildHandle
//
Status = EfiTestChildHandle (
ControllerHandle,
ChildHandle,
ChildHandle,
&gEfiUdp6ProtocolGuid
);
if (EFI_ERROR (Status)) {
Expand All @@ -420,7 +420,7 @@ Dhcp6ComponentNameGetControllerName (
Status = gBS->OpenProtocol (
ChildHandle,
&gEfiDhcp6ProtocolGuid,
(VOID **)&Dhcp6,
(VOID **)&Dhcp6,
NULL,
NULL,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
Expand Down
10 changes: 5 additions & 5 deletions NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Driver Binding functions and Service Binding functions
implementationfor for Dhcp6 Driver.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -328,7 +328,7 @@ Dhcp6CreateInstance (

/**
Callback function which provided by user to remove one node in NetDestroyLinkList process.
@param[in] Entry The entry to be removed.
@param[in] Context Pointer to the callback context corresponds to the Context in NetDestroyLinkList.
Expand All @@ -352,7 +352,7 @@ Dhcp6DestroyChildEntry (

Instance = NET_LIST_USER_STRUCT_S (Entry, DHCP6_INSTANCE, Link, DHCP6_INSTANCE_SIGNATURE);
ServiceBinding = (EFI_SERVICE_BINDING_PROTOCOL *) Context;

return ServiceBinding->DestroyChild (ServiceBinding, Instance->Handle);
}

Expand Down Expand Up @@ -558,7 +558,7 @@ Dhcp6DriverBindingStop (
if (!IsListEmpty (&Service->Child)) {
//
// Destroy all the children instances before destory the service.
//
//
List = &Service->Child;
Status = NetDestroyLinkList (
List,
Expand Down Expand Up @@ -591,7 +591,7 @@ Dhcp6DriverBindingStop (
Dhcp6DestroyService (Service);
Status = EFI_SUCCESS;
}

ON_EXIT:
return Status;
}
Expand Down
8 changes: 4 additions & 4 deletions NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## @file
# Client-side DHCPv6 services.
#
#
# This driver produces EFI DHCPv6 Protocol which is used to get IPv6 addresses
# and other configuration parameters from DHCPv6 servers.
#
# (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2009 - 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
Expand Down Expand Up @@ -74,9 +74,9 @@
gEfiDhcp6ProtocolGuid ## BY_START
gEfiIp6ConfigProtocolGuid ## TO_START

[Guids]
[Guids]
gZeroGuid ## SOMETIMES_CONSUMES ## GUID

[Pcd]
gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType ## SOMETIMES_CONSUMES

Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.uni
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// This driver produces EFI DHCPv6 Protocol which is used to get IPv6 addresses
// and other configuration parameters from DHCPv6 servers.
//
// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2009 - 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
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php.
//
//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
Expand Down
6 changes: 3 additions & 3 deletions NetworkPkg/Dhcp6Dxe/Dhcp6DxeExtra.uni
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// /** @file
// Dhcp6Dxe Localized Strings and Content
//
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
// Copyright (c) 2013 - 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
Expand All @@ -13,8 +13,8 @@
//
// **/

#string STR_PROPERTIES_MODULE_NAME
#language en-US
#string STR_PROPERTIES_MODULE_NAME
#language en-US
"DHCP6 DXE"


8 changes: 4 additions & 4 deletions NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
This EFI_DHCP6_PROTOCOL interface implementation.
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -237,7 +237,7 @@ EfiDhcp6Stop (
}
Status = Instance->UdpSts;
}

ON_EXIT:
//
// Clean up the session data for the released Ia.
Expand Down Expand Up @@ -678,7 +678,7 @@ EfiDhcp6InfoRequest (
return Status;
}

do {
do {
TimerStatus = gBS->CheckEvent (Timer);
if (!EFI_ERROR (TimerStatus)) {
Status = Dhcp6StartInfoRequest (
Expand All @@ -694,7 +694,7 @@ EfiDhcp6InfoRequest (
);
}
} while (TimerStatus == EFI_NOT_READY);

gBS->CloseEvent (Timer);
}
if (EFI_ERROR (Status)) {
Expand Down
4 changes: 2 additions & 2 deletions NetworkPkg/Dhcp6Dxe/Dhcp6Impl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Dhcp6 internal data structure and definition declaration.
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2009 - 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
Expand Down Expand Up @@ -132,7 +132,7 @@ struct _DHCP6_INSTANCE {
BOOLEAN MediaPresent;
//
// StartTime is used to calculate the 'elapsed-time' option. Refer to RFC3315,
// the elapsed-time is amount of time since the client began its current DHCP transaction.
// the elapsed-time is amount of time since the client began its current DHCP transaction.
//
UINT64 StartTime;
};
Expand Down
Loading

0 comments on commit f75a7f5

Please sign in to comment.