-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS query fails with Nanostack on socket_sendto_control #15118
Comments
Same issue for AT_CellularStack. Nice move by the author to leave the API unsupported instead of redirecting it to socket_recvfrom. mbed-os/connectivity/cellular/include/cellular/framework/AT/AT_CellularStack.h Lines 92 to 104 in 54a4879
|
Apparently the unimplemented API is actually properly handled by the parent: mbed-os/connectivity/netsocket/include/netsocket/NetworkStack.h Lines 415 to 424 in 54a4879
mbed-os/connectivity/netsocket/include/netsocket/NetworkStack.h Lines 446 to 455 in 54a4879
This means that the dummy implementations returning |
Description of defect
Device fails to resolve DNS queries after updating to 6.15 from 6.13. Using an IP address works. Failure occurs using Nanostack and Cellular and PPP.
Target(s) affected by this defect ?
NUCLEO_WB55RG
Toolchain(s) (name and version) displaying this defect ?
gcc-arm-none-eabi-9-2019-q4-major
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.15.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.2
How is this defect reproduced ?
After initializing the network, calling
_iface->gethostbyname(url, &_resolved_address, NSAPI_IPv6
fails. The ntp-client lib also fails on apparantly the same NSAPI_UNSUPPORTED error https://github.com/ARMmbed/ntp-client.GDB backtrace shows it is hitting the unsupported Nanostack::socket_sendto_control
I believe the issue is with #15040 . The following patch seems to resolve the issue. Why is NetworkStack::socket_recvfrom_control defined to use the old socket_sendto/socket_recvfrom if control is NULL but Nanostack just fails?
The text was updated successfully, but these errors were encountered: