I am trying to run the C API for Unetstack. I have been trying to run the test code here.
I am running 3-node-network.groovy from the unetsim-1.4 sample code in my terminal to use as my modem network. I am using unetsim-1.4a for linux for my simulator.
This is how I call the test code:
make IP="127.0.0.1" ADDR=1 test
The test code is able to open the modem, but is not able to send packets through. This is the error I end up getting:
Packet transmission: FAILED
Packet transmission: FAILED
Segmentation fault (core dumped)
and I do not see any received packets on my simulator shell.
When I run the 3-node-network.groovy simulation with the Python API, everything works fine, and I can see packets being received on my simulator shell.
How should I set up the environment to run the Unetstack C API test code to transmit and receive through a simulated modem network on unetsim?