X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FIpSecDxe%2FIpSecConfigImpl.h;h=23e68805ad980b122519f09c45b83f752d7c152d;hb=89648826ee0a68a24a71826e32787dc5c935b622;hp=036cd8d4e078917b13156ba2e9c3bfc8c0efa566;hpb=9166f840d2a70b924b0ff66528f056515443e4e8;p=mirror_edk2.git diff --git a/NetworkPkg/IpSecDxe/IpSecConfigImpl.h b/NetworkPkg/IpSecDxe/IpSecConfigImpl.h index 036cd8d4e0..23e68805ad 100644 --- a/NetworkPkg/IpSecDxe/IpSecConfigImpl.h +++ b/NetworkPkg/IpSecDxe/IpSecConfigImpl.h @@ -1,7 +1,7 @@ /** @file Definitions related to IPSEC_CONFIG_PROTOCOL implementations. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -38,7 +38,7 @@ #define IPSECCONFIG_VARIABLE_NAME L"IpSecConfig" #define IPSECCONFIG_STATUS_NAME L"IpSecStatus" -#define SIZE_OF_SPD_SELECTOR(x) (UINTN) (sizeof (EFI_IPSEC_SPD_SELECTOR) \ +#define SIZE_OF_SPD_SELECTOR(x) (sizeof (EFI_IPSEC_SPD_SELECTOR) \ + sizeof (EFI_IP_ADDRESS_INFO) * ((x)->LocalAddressCount + (x)->RemoteAddressCount)) #define FIX_REF_BUF_ADDR(addr, base) addr = (VOID *) ((UINTN) (addr) - (UINTN) (base)) @@ -75,11 +75,11 @@ typedef struct { /** The prototype of Copy Source Selector to the Destination Selector. - @param[in out] DstSel Pointer of Destination Selector. It would be + @param[in, out] DstSel Pointer of Destination Selector. It would be SPD Selector, or SAD Selector or PAD Selector. @param[in] SrcSel Pointer of Source Selector. It would be SPD Selector, or SAD Selector or PAD Selector. - @param[in out] Size The size of the Destination Selector. If it + @param[in, out] Size The size of the Destination Selector. If it is not NULL and its value is less than the size of Source Selector, the value of Source Selector's size will be passed to the caller by this parameter. @@ -155,7 +155,7 @@ VOID Data type is related to the Type. @param[in] SelectorSize The size of the Selector. @param[in] DataSize The size of the Data. - @param[in out] Buffer The buffer to store the Selector and Data. + @param[in, out] Buffer The buffer to store the Selector and Data. @retval EFI_SUCCESS Copied the Selector and Data to a buffer successfully. @retval EFI_OUT_OF_RESOURCES The required system resource could not be allocated.