Closed YoannGh closed 4 years ago
You shall bind local ip in applicaton.
That was it, thank you!
I have another problem where I cannot send TCP data as fast as possible without reading sockets, I can send a first packet but next calls to anssock_send() keep returning -1 and errno is set to EAGAIN. I will try to investigate this and maybe open another issue.
You can refer to the example or test code. Maybe the anssock_connec() is not finished. anssock_connect is nonblocking API.
Hi,
I am trying to send UDP packets from a posix thread using the anssock_sendto() function:
anssock_sendto(fd, buf, size, 0, (struct sockaddr *)remote_addr, sizeof(remote_addr));
But packets are dropped by ANS.
I don't know if this error refers to IP or MAC address?
IP addr and routes are properly setup
But neigh table is not updated
remote_addr is initialized this way:
Maybe ANS isn't performing ARP when using UDP?