diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2013-11-20 18:31:01 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-11-20 18:31:01 +0000 |
commit | 2dc09dd50fe30496efe9922ee6177ed7bdef6bc2 (patch) | |
tree | f668f36be389f780d0c3e3495faff5515ce47638 /StdLib/EfiSocketLib/Socket.h | |
parent | f79868cd18238805fe64d2ceca573e7c85ea8146 (diff) | |
download | edk2-2dc09dd50fe30496efe9922ee6177ed7bdef6bc2.tar.gz edk2-2dc09dd50fe30496efe9922ee6177ed7bdef6bc2.tar.bz2 edk2-2dc09dd50fe30496efe9922ee6177ed7bdef6bc2.zip |
Ignore transmit errors for UDPv4, UDPv6 and IPv4.
Support local bind by validating the IP address using the IP configuration protocol.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Ankit Singh3 <Ankit_Singh3@Dell.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14875 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/EfiSocketLib/Socket.h')
-rw-r--r-- | StdLib/EfiSocketLib/Socket.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/StdLib/EfiSocketLib/Socket.h b/StdLib/EfiSocketLib/Socket.h index b38bec6bde..583be1ffd0 100644 --- a/StdLib/EfiSocketLib/Socket.h +++ b/StdLib/EfiSocketLib/Socket.h @@ -921,6 +921,25 @@ VOID );
/**
+ Verify the adapter's IP address
+
+ This support routine is called by EslSocketBindTest.
+
+ @param [in] pPort Address of an ::ESL_PORT structure.
+ @param [in] pConfigData Address of the configuration data
+
+ @retval EFI_SUCCESS - The IP address is valid
+ @retval EFI_NOT_STARTED - The IP address is invalid
+
+ **/
+typedef
+EFI_STATUS
+(* PFN_API_VERIFY_LOCAL_IP_ADDRESS) (
+ IN ESL_PORT * pPort,
+ IN VOID * pConfigData
+ );
+
+/**
Socket type control structure
This driver uses this structure to define the API for the socket type.
@@ -960,6 +979,7 @@ typedef struct { PFN_API_TRANSMIT pfnTransmit; ///< Attempt to buffer a packet for transmit
PFN_API_TX_COMPLETE pfnTxComplete; ///< TX completion for normal data
PFN_API_TX_COMPLETE pfnTxOobComplete; ///< TX completion for urgent data
+ PFN_API_VERIFY_LOCAL_IP_ADDRESS pfnVerifyLocalIpAddress; ///< Verify the local IP address
} ESL_PROTOCOL_API;
|