diff --git a/net/tcp/tcp.h b/net/tcp/tcp.h index 1568cc5329c..8662ccd7a79 100644 --- a/net/tcp/tcp.h +++ b/net/tcp/tcp.h @@ -419,7 +419,7 @@ FAR struct tcp_conn_s *tcp_nextconn(FAR struct tcp_conn_s *conn); * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -440,7 +440,7 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn); * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ diff --git a/net/tcp/tcp_finddev.c b/net/tcp/tcp_finddev.c index c6bd0348bdb..973ac944f3d 100644 --- a/net/tcp/tcp_finddev.c +++ b/net/tcp/tcp_finddev.c @@ -69,7 +69,7 @@ * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -190,7 +190,7 @@ static int tcp_find_ipv6_device(FAR struct tcp_conn_s *conn, const net_ipv6addr_ * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/ @@ -218,7 +218,7 @@ int tcp_local_ipv4_device(FAR struct tcp_conn_s *conn) * * Returned Value: * Zero (OK) is returned on success. A negated errno value is returned - * on failure. -ENODEV is the only expected error value. + * on failure. -ENETUNREACH is the only expected error value. * ****************************************************************************/