Limitations
193
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
Ping
Example of stopping the ping request:
_i16 Status;
SlNetAppPingCommand_t pingCommand;
pingCommand.Ip = 0;
Status = sl_NetAppPing( &pingCommand, SL_AF_INET, &report, NULL ) ;
if
(Status)
{
/* error */
}
Example of sending an IPV6 infinite ping request:
_i16 Status;
SlNetAppPingReport_t report;
SlNetAppPingCommand_t pingCommand;
pingCommand.Ip = 0xFF020000;
/* IPV6 Address */
pingCommand.Ip1OrPadding = 0;
/* IPV6 Address */
pingCommand.Ip2OrPadding = 0;
/* IPV6 Address */
pingCommand.Ip3OrPadding = 0xFB;
/* IPV6 Address */
pingCommand.PingSize = 150;
/* size of ping, in bytes */
pingCommand.PingIntervalTime = 100;
/* delay between pings, in milliseconds */
pingCommand.PingRequestTimeout = 1000;
/* timeout for every ping in milliseconds */
pingCommand.TotalNumberOfAttempts = 0;
/* max number of ping requests. 0 - forever */
pingCommand.Flags = 0;
/* report only when finished */
Status = sl_NetAppPing( &pingCommand, SL_AF_INET6, &report, NULL ) ;
if
(Status)
{
/* error */
}
12.3 Limitations
An infinite number of ping requests can be implemented only with a callback.