| ... | @@ -3966,6 +3966,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne | ... | @@ -3966,6 +3966,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne |
| 3966 | .FAULT => unreachable, // The socket structure address is outside the user's address space. | 3966 | .FAULT => unreachable, // The socket structure address is outside the user's address space. |
| 3967 | .INTR => continue, | 3967 | .INTR => continue, |
| 3968 | .ISCONN => unreachable, // The socket is already connected. | 3968 | .ISCONN => unreachable, // The socket is already connected. |
| | 3969 | .HOSTUNREACH => return error.NetworkUnreachable, |
| 3969 | .NETUNREACH => return error.NetworkUnreachable, | 3970 | .NETUNREACH => return error.NetworkUnreachable, |
| 3970 | .NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. | 3971 | .NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. |
| 3971 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. | 3972 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. |
| ... | @@ -3995,6 +3996,7 @@ pub fn getsockoptError(sockfd: fd_t) ConnectError!void { | ... | @@ -3995,6 +3996,7 @@ pub fn getsockoptError(sockfd: fd_t) ConnectError!void { |
| 3995 | .CONNREFUSED => return error.ConnectionRefused, | 3996 | .CONNREFUSED => return error.ConnectionRefused, |
| 3996 | .FAULT => unreachable, // The socket structure address is outside the user's address space. | 3997 | .FAULT => unreachable, // The socket structure address is outside the user's address space. |
| 3997 | .ISCONN => unreachable, // The socket is already connected. | 3998 | .ISCONN => unreachable, // The socket is already connected. |
| | 3999 | .HOSTUNREACH => return error.NetworkUnreachable, |
| 3998 | .NETUNREACH => return error.NetworkUnreachable, | 4000 | .NETUNREACH => return error.NetworkUnreachable, |
| 3999 | .NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. | 4001 | .NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. |
| 4000 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. | 4002 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. |