Add ability to configure whether or not OpenThread handles ICMPv6 Echo Request/Reply messages. (#207)

This commit is contained in:
Jonathan Hui
2016-06-24 12:43:02 -07:00
committed by GitHub
parent f006d34058
commit a43fb455d9
5 changed files with 66 additions and 4 deletions
+17
View File
@@ -1194,6 +1194,23 @@ void otSetReceiveIp6DatagramCallback(otReceiveIp6DatagramCallback aCallback);
*/
ThreadError otSendIp6Datagram(otMessage aMessage);
/**
* This function indicates whether or not ICMPv6 Echo processing is enabled.
*
* @retval TRUE ICMPv6 Echo processing is enabled.
* @retval FALSE ICMPv6 Echo processing is disabled.
*
*/
bool otIsIcmpEchoEnabled(void);
/**
* This function sets whether or not ICMPv6 Echo processing is enabled.
*
* @param[in] aEnabled TRUE to enable ICMPv6 Echo processing, FALSE otherwise.
*
*/
void otSetIcmpEchoEnabled(bool aEnabled);
/**
* @}
*