);\r
\r
/**\r
- The work function to locate IPsec protocol to process the inbound or\r
- outbound IP packets. The process routine handls the packet with the following\r
+ The work function to locate the IPsec protocol to process the inbound or\r
+ outbound IP packets. The process routine handles the packet with the following\r
actions: bypass the packet, discard the packet, or protect the packet.\r
\r
@param[in] IpSb The IP6 service instance.\r
- @param[in] Head The caller supplied IP6 header.\r
+ @param[in, out] Head The caller-supplied IP6 header.\r
@param[in, out] LastHead The next header field of last IP header.\r
@param[in, out] Netbuf The IP6 packet to be processed by IPsec.\r
- @param[in] ExtHdrs The caller supplied options.\r
- @param[in] ExtHdrsLen The length of the option.\r
+ @param[in, out] ExtHdrs The caller-supplied options.\r
+ @param[in, out] ExtHdrsLen The length of the option.\r
@param[in] Direction The directionality in an SPD entry,\r
- EfiIPsecInBound or EfiIPsecOutBound.\r
+ EfiIPsecInBound, or EfiIPsecOutBound.\r
@param[in] Context The token's wrap.\r
\r
@retval EFI_SUCCESS The IPsec protocol is not available or disabled.\r
- @retval EFI_SUCCESS The packet was bypassed and all buffers remain the same.\r
+ @retval EFI_SUCCESS The packet was bypassed, and all buffers remain the same.\r
@retval EFI_SUCCESS The packet was protected.\r
@retval EFI_ACCESS_DENIED The packet was discarded.\r
@retval EFI_OUT_OF_RESOURCES There are not suffcient resources to complete the operation.\r
- @retval EFI_BUFFER_TOO_SMALL The number of non-empty block is bigger than the\r
+ @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger than the\r
number of input data blocks when building a fragment table.\r
\r
**/\r
EFI_STATUS\r
Ip6IpSecProcessPacket (\r
- IN IP6_SERVICE *IpSb,\r
- IN EFI_IP6_HEADER *Head,\r
- IN OUT UINT8 *LastHead,\r
- IN OUT NET_BUF **Netbuf,\r
- IN VOID *ExtHdrs,\r
- IN UINT32 ExtHdrsLen,\r
- IN EFI_IPSEC_TRAFFIC_DIR Direction,\r
- IN VOID *Context\r
+ IN IP6_SERVICE *IpSb,\r
+ IN OUT EFI_IP6_HEADER **Head,\r
+ IN OUT UINT8 *LastHead,\r
+ IN OUT NET_BUF **Netbuf,\r
+ IN OUT UINT8 **ExtHdrs,\r
+ IN OUT UINT32 *ExtHdrsLen,\r
+ IN EFI_IPSEC_TRAFFIC_DIR Direction,\r
+ IN VOID *Context\r
);\r
\r
/**\r