]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c
NetworkPkg: Clean up source files
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6ConfigImpl.c
index f4b9374da2d0c85e3688fce47f28fe2e2c3e67db..6ec87716a2de404f42c74f313bca3b0653cc061a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The implementation of EFI IPv6 Configuration Protocol.\r
 \r
 /** @file\r
   The implementation of EFI IPv6 Configuration Protocol.\r
 \r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 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
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -58,7 +58,7 @@ Ip6ConfigOnPolicyChanged (
   BOOLEAN             Recovery;\r
 \r
   Recovery = FALSE;\r
   BOOLEAN             Recovery;\r
 \r
   Recovery = FALSE;\r
-  \r
+\r
   //\r
   // Currently there are only two policies: Manual and Automatic. Regardless of\r
   // what transition is going on, i.e., Manual -> Automatic and Automatic ->\r
   //\r
   // Currently there are only two policies: Manual and Automatic. Regardless of\r
   // what transition is going on, i.e., Manual -> Automatic and Automatic ->\r
@@ -86,14 +86,14 @@ Ip6ConfigOnPolicyChanged (
   }\r
 \r
   if (!IsListEmpty (&IpSb->DefaultInterface->AddressList) && IpSb->DefaultInterface->AddressCount > 0) {\r
   }\r
 \r
   if (!IsListEmpty (&IpSb->DefaultInterface->AddressList) && IpSb->DefaultInterface->AddressCount > 0) {\r
-    //  \r
-    // If any IPv6 children (Instance) in configured state and use global unicast address, it will be \r
-    // destroyed in Ip6RemoveAddr() function later. Then, the upper layer driver's Stop() function will be \r
-    // called, which may break the upper layer network stacks. So, the driver should take the responsibility \r
-    // for the recovery by using ConnectController() after Ip6RemoveAddr(). \r
+    //\r
+    // If any IPv6 children (Instance) in configured state and use global unicast address, it will be\r
+    // destroyed in Ip6RemoveAddr() function later. Then, the upper layer driver's Stop() function will be\r
+    // called, which may break the upper layer network stacks. So, the driver should take the responsibility\r
+    // for the recovery by using ConnectController() after Ip6RemoveAddr().\r
     // Here, just check whether need to recover the upper layer network stacks later.\r
     //\r
     // Here, just check whether need to recover the upper layer network stacks later.\r
     //\r
-    NET_LIST_FOR_EACH (Entry, &IpSb->DefaultInterface->AddressList) { \r
+    NET_LIST_FOR_EACH (Entry, &IpSb->DefaultInterface->AddressList) {\r
       AddrInfo = NET_LIST_USER_STRUCT_S (Entry, IP6_ADDRESS_INFO, Link, IP6_ADDR_INFO_SIGNATURE);\r
       if (!IsListEmpty (&IpSb->Children)) {\r
         NET_LIST_FOR_EACH (Entry2, &IpSb->Children) {\r
       AddrInfo = NET_LIST_USER_STRUCT_S (Entry, IP6_ADDRESS_INFO, Link, IP6_ADDR_INFO_SIGNATURE);\r
       if (!IsListEmpty (&IpSb->Children)) {\r
         NET_LIST_FOR_EACH (Entry2, &IpSb->Children) {\r
@@ -105,7 +105,7 @@ Ip6ConfigOnPolicyChanged (
         }\r
       }\r
     }\r
         }\r
       }\r
     }\r
-    \r
+\r
     //\r
     // All IPv6 children that use global unicast address as it's source address\r
     // should be destroyed now. The survivers are those use the link-local address\r
     //\r
     // All IPv6 children that use global unicast address as it's source address\r
     // should be destroyed now. The survivers are those use the link-local address\r
@@ -118,7 +118,7 @@ Ip6ConfigOnPolicyChanged (
       NULL,\r
       0\r
       );\r
       NULL,\r
       0\r
       );\r
-    \r
+\r
     if (IpSb->Controller != NULL && Recovery) {\r
       //\r
       // ConnectController() to recover the upper layer network stacks.\r
     if (IpSb->Controller != NULL && Recovery) {\r
       //\r
       // ConnectController() to recover the upper layer network stacks.\r
@@ -726,7 +726,7 @@ Ip6ConfigSetPolicy (
     DataItem->DataSize = 0;\r
     DataItem->Status   = EFI_NOT_FOUND;\r
     NetMapIterate (&DataItem->EventMap, Ip6ConfigSignalEvent, NULL);\r
     DataItem->DataSize = 0;\r
     DataItem->Status   = EFI_NOT_FOUND;\r
     NetMapIterate (&DataItem->EventMap, Ip6ConfigSignalEvent, NULL);\r
-    \r
+\r
     if (NewPolicy == Ip6ConfigPolicyManual) {\r
       //\r
       // The policy is changed from automatic to manual. Stop the DHCPv6 process\r
     if (NewPolicy == Ip6ConfigPolicyManual) {\r
       //\r
       // The policy is changed from automatic to manual. Stop the DHCPv6 process\r
@@ -1546,7 +1546,7 @@ Ip6ConfigSetDnsServer (
     }\r
   } else  {\r
     //\r
     }\r
   } else  {\r
     //\r
-    // DataSize is 0 and Data is NULL, clean up the DnsServer address. \r
+    // DataSize is 0 and Data is NULL, clean up the DnsServer address.\r
     //\r
     if (Item->Data.Ptr != NULL) {\r
       FreePool (Item->Data.Ptr);\r
     //\r
     if (Item->Data.Ptr != NULL) {\r
       FreePool (Item->Data.Ptr);\r
@@ -1965,7 +1965,7 @@ Ip6ConfigOnDhcp6SbInstalled (
                                 network stack was set successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
                                 - This is NULL.\r
                                 network stack was set successfully.\r
   @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
                                 - This is NULL.\r
-                                - One or more fields in Data and DataSizedo not match the \r
+                                - One or more fields in Data and DataSizedo not match the\r
                                   requirement of the data type indicated by DataType.\r
   @retval EFI_WRITE_PROTECTED   The specified configuration data is read-only or the specified\r
                                 configuration data cannot be set under the current policy.\r
                                   requirement of the data type indicated by DataType.\r
   @retval EFI_WRITE_PROTECTED   The specified configuration data is read-only or the specified\r
                                 configuration data cannot be set under the current policy.\r