Ping domain name always fails

I use legato-18.08.0/apps/test/modemServices/mdc/mdcIntegrationTest/ to test data,but i find system("ping -c 4 www.sierrawireless.com ") always fail.
mdcTest.adef content:

sandboxed: false
executables:
{
mdcTest = ( mdcTestComp )
}
processes:
{
envVars:
{
LE_LOG_LEVEL = DEBUG
}
run:
{
( mdcTest )
}
}
start: manual
bindings:
{
mdcTest.mdcTestComp.le_mdc → modemService.le_mdc
}

But, i find that after i use “cm data connect”,and ping is ok.
How to solve this issues?

I means that system() is fails, but command line “root@mdm9607:~# ping www.baidu.com” is work.

Hi,

I haven’t tested mdcTest app yet but I can use system() function to ping sierrawireless.com within a simple Legato app (with “sandboxed: false” in the .adef).

I’m using Legato 19.01.

Could you attach your legato log in order to see the errors?

Jay

I think sending ICMP packets (= ping) is restricted on Linux, which might be why doing ping as a standard user fails.

Do you have some logs by any chance?