Skip to content

Commit 7dc4c99

Browse files
author
Sebastian Stockhammer
committed
Allow IPV4V6 stack type
1 parent 402c471 commit 7dc4c99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

features/cellular/framework/targets/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_sendto_impl(Cellul
290290
{
291291
if (socket->proto == NSAPI_UDP) {
292292
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)) {
293+
if (_stack_type != IPV4V6_STACK &&
294+
((ip_version == NSAPI_IPv4 && _stack_type != IPV4_STACK) ||
295+
(ip_version == NSAPI_IPv6 && _stack_type != IPV6_STACK))) {
295296
tr_warn("No IP route for %s", address.get_ip_address());
296297
return NSAPI_ERROR_NO_SOCKET;
297298
}

0 commit comments

Comments
 (0)