tcp: modify errno when connect raddr is ANY for ltp
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
65e08b750c
commit
26286fd19e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue