| Previous | Next |
| ENOTCONN | ENOTRECOVERABLE |
ENETDOWN
The network is unavailable, not merely the destination host
ENETDOWN is Solaris' network-down operational error. It should be separated from ENETUNREACH, where a network cannot be reached, and EHOSTUNREACH, where the failure is associated with a destination host. Those codes point at different layers of the reachability decision.
For a connection failure, the exact errno should be captured before higher-level libraries turn all three into a generic “network error”. A network interface or provider state problem can make changing DNS names, ports, or application credentials irrelevant.
Network-state checks
- Record the interface and route selected for the destination at the time of failure, including administrative and link state.
- Check whether the error is local to one network namespace/zone or affects the host's network providers more broadly.
- Compare simultaneous connections through other interfaces before classifying the remote service as unavailable.
References
Looking for a different code? Search another status or error code.
