`nsos_connect_blocking()` is not returning the error as expected. It is expected to return a negative `NSI_ERRNO_MID_...` value, but it is returning a positive errno value. `nsos_connect_blocking()` should map the errno value to a negative `NSI_ERRNO_MID_...`, which `nsos_connect()` maps back to a -1 return with errno=`ECONNREFUSED`. the current sequence of events: - `ECONNREFUSED` occurs during connection - `nsos_connect_blocking()` returns positive `ECONNREFUSED` - `nsos_connect()` returns positive `ECONNREFUSED` - `zsock_connect()` returns positive `ECONNREFUSED` the expected sequence of events: - `ECONNREFUSED` occurs during connection - `nsos_connect_blocking()` returns negative `NSI_ERRNO_MID_ECONNREFUSED` - `nsos_connect()` returns -1, errno=`ECONNREFUSED` - `zsock_connect()` returns -1, errno=`ECONNREFUSED` Signed-off-by: Noah Olson <noah@wavelynx.com> |
||
|---|---|---|
| .. | ||
| canbus.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| loopback.c | ||
| nsos_adapt.c | ||
| nsos_fcntl.c | ||
| nsos_fcntl.h | ||
| nsos_netdb.c | ||
| nsos_netdb.h | ||
| nsos_socket.h | ||
| nsos_sockets.c | ||
| nsos.h | ||
| ppp.c | ||
| slip.c | ||
| slip.h | ||