blob: 6bf5e0d3c3b63223b2d6042cbdc0c19f05f2b384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <skalibs/nonposix.h>
#include <sys/socket.h>
#include <skalibs/uint16.h>
#include <skalibs/socket.h>
int socket_bind6_reuse (int s, char const *ip6, uint16 port)
{
unsigned int opt = 1 ;
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof opt) ;
return socket_bind6(s, ip6, port) ;
}
|