]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/IpSecDxe/IpSecConfigImpl.h
Reconfigure the UdpRead instance if an error occurred in Dhcp, Discover and Mtftp...
[mirror_edk2.git] / NetworkPkg / IpSecDxe / IpSecConfigImpl.h
index 54d43bd01cf361e889d7164555590c4e4083d340..3e365dae4aeb56f0210c71a727e15a9333fefed8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Definitions related to IPSEC_CONFIG_PROTOCOL implementations.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, 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
@@ -75,11 +75,11 @@ typedef struct {
 /**\r
   The prototype of Copy Source Selector to the Destination Selector.\r
 \r
-  @param[in out]  DstSel             Pointer of Destination Selector. It would be\r
+  @param[in, out] DstSel             Pointer of Destination Selector. It would be\r
                                      SPD Selector, or SAD Selector or PAD Selector.\r
   @param[in]      SrcSel             Pointer of Source  Selector. It would be\r
                                      SPD Selector, or SAD Selector or PAD Selector.\r
-  @param[in out]  Size               The size of the Destination Selector. If it\r
+  @param[in, out] Size               The size of the Destination Selector. If it\r
                                      is not NULL and its value is less than the size of\r
                                      Source Selector, the value of Source Selector's\r
                                      size will be passed to the caller by this parameter.\r
@@ -155,7 +155,7 @@ VOID
                                     Data type is related to the Type.\r
   @param[in]      SelectorSize      The size of the Selector.\r
   @param[in]      DataSize          The size of the Data.\r
-  @param[in out]  Buffer            The buffer to store the Selector and Data.\r
+  @param[in, out] Buffer            The buffer to store the Selector and Data.\r
 \r
   @retval EFI_SUCCESS            Copied the Selector and Data to a buffer successfully.\r
   @retval EFI_OUT_OF_RESOURCES   The required system resource could not be allocated.\r
@@ -342,21 +342,22 @@ IpSecDuplicateProcessPolicy (
   );\r
 \r
 /**\r
-  Compare two SPD Selectors.\r
+  Find if the two SPD Selectors has subordinative.\r
 \r
   Compare two SPD Selector by the fields of LocalAddressCount/RemoteAddressCount/\r
-  NextLayerProtocol/LocalPort/LocalPortRange/RemotePort/RemotePortRange and the\r
+  NextLayerProtocol/LocalPort/LocalPortRange/RemotePort/RemotePortRange and the \r
   Local Addresses and remote Addresses.\r
 \r
-  @param[in]   Selector1           Pointer of the first SPD Selector.\r
-  @param[in]   Selector2           Pointer of the second SPD Selector.\r
-\r
-  @retval  TRUE    This two Selector have the same value in above fields.\r
-  @retval  FALSE   Not all of the above fields have the same value in these two Selectors.\r
+  @param[in]   Selector1           Pointer of first SPD Selector.\r
+  @param[in]   Selector2           Pointer of second SPD Selector.\r
 \r
+  @retval  TRUE    The first SPD Selector is subordinate Selector of second SPD Selector.\r
+  @retval  FALSE   The first SPD Selector is not subordinate Selector of second \r
+                   SPD Selector.\r
+  \r
 **/\r
 BOOLEAN\r
-CompareSpdSelector (\r
+IsSubSpdSelector (\r
   IN EFI_IPSEC_CONFIG_SELECTOR        *Selector1,\r
   IN EFI_IPSEC_CONFIG_SELECTOR        *Selector2\r
   );\r
@@ -537,7 +538,7 @@ FixSpdEntry (
 VOID\r
 FixSadEntry (\r
   IN     EFI_IPSEC_SA_ID                  *SaId,\r
-  IN OUT EFI_IPSEC_SA_DATA                *Data\r
+  IN OUT EFI_IPSEC_SA_DATA2                *Data\r
   );\r
 \r
 /**\r
@@ -588,7 +589,7 @@ UnfixSpdEntry (
 VOID\r
 UnfixSadEntry (\r
   IN OUT EFI_IPSEC_SA_ID                     *SaId,\r
-  IN OUT EFI_IPSEC_SA_DATA                   *Data\r
+  IN OUT EFI_IPSEC_SA_DATA2                   *Data\r
   );\r
 \r
 /**\r
@@ -949,4 +950,6 @@ EfiIpSecConfigUnregisterNotify (
   IN EFI_EVENT                        Event\r
   );\r
 \r
+extern LIST_ENTRY   mConfigData[IPsecConfigDataTypeMaximum];\r
+\r
 #endif\r