socket_bind6r.c (310B)
1 /* ISC license. */ 2 3 #include <skalibs/nonposix.h> 4 5 #include <sys/socket.h> 6 7 #include <skalibs/socket.h> 8 9 int socket_bind6_reuse (int s, char const *ip6, uint16_t port) 10 { 11 static unsigned int const opt = 1 ; 12 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof opt) ; 13 return socket_bind6(s, ip6, port) ; 14 }