X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=7e519f4a9e06dadc12a62984d2f9f4afeac2a637;hb=2d2e94406c5f595eff67a01ee6bb1190f77c37ff;hp=d89d077b08718b3a0de683a449fc03d26db93970;hpb=75e5b2e906bd8563bf0f53a76065618c88122e1c;p=tinc diff --git a/src/utils.h b/src/utils.h index d89d077b..7e519f4a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -37,6 +37,7 @@ extern const char *winerror(int); #define sockmsgsize(x) ((x) == WSAEMSGSIZE) #define sockinprogress(x) ((x) == WSAEINPROGRESS || (x) == WSAEWOULDBLOCK) #define sockinuse(x) ((x) == WSAEADDRINUSE) +#define socknotconn(x) ((x) == WSAENOTCONN) #else #define sockerrno errno #define sockstrerror(x) strerror(x) @@ -44,6 +45,7 @@ extern const char *winerror(int); #define sockmsgsize(x) ((x) == EMSGSIZE) #define sockinprogress(x) ((x) == EINPROGRESS) #define sockinuse(x) ((x) == EADDRINUSE) +#define socknotconn(x) ((x) == ENOTCONN) #endif extern unsigned int bitfield_to_int(const void *bitfield, size_t size);