tcp: modify errno when connect raddr is ANY for ltp

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2022-11-15 14:51:02 +08:00 committed by archer
parent 65e08b750c
commit 26286fd19e
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ static int tcp_find_ipv4_device(FAR struct tcp_conn_s *conn,
return OK;
}
return -EINVAL;
return -ECONNREFUSED;
}
/* We need to select the device that is going to route the TCP packet
@ -137,7 +137,7 @@ static int tcp_find_ipv6_device(FAR struct tcp_conn_s *conn,
return OK;
}
return -EINVAL;
return -ECONNREFUSED;
}
/* We need to select the device that is going to route the TCP packet