github.com/ethersphere/bee/v2@v2.2.0/pkg/p2p/libp2p/unreachable_errors_unix.go (about) 1 // Copyright 2022 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 7 package libp2p 8 9 import "golang.org/x/sys/unix" 10 11 // Collection of errors returned by the underlying 12 // operating system that signals network unavailability. 13 var ( 14 errHostUnreachable error = unix.EHOSTUNREACH 15 errNetworkUnreachable error = unix.ENETUNREACH 16 )