We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402c471 commit 7dc4c99Copy full SHA for 7dc4c99
features/cellular/framework/targets/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp
@@ -290,8 +290,9 @@ nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_sendto_impl(Cellul
290
{
291
if (socket->proto == NSAPI_UDP) {
292
const int ip_version = address.get_ip_version();
293
- if ((ip_version == NSAPI_IPv4 && _stack_type != IPV4_STACK) ||
294
- (ip_version == NSAPI_IPv6 && _stack_type != IPV6_STACK)) {
+ if (_stack_type != IPV4V6_STACK &&
+ ((ip_version == NSAPI_IPv4 && _stack_type != IPV4_STACK) ||
295
+ (ip_version == NSAPI_IPv6 && _stack_type != IPV6_STACK))) {
296
tr_warn("No IP route for %s", address.get_ip_address());
297
return NSAPI_ERROR_NO_SOCKET;
298
}
0 commit comments