mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use unspecified address family when connecting as a client in
libibverbs example utilities. This allows connecting to both IPv4 and IPv6 and reverts some FreeBSD only patches. MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
7600168453
commit
3468ddce67
5 changed files with 5 additions and 5 deletions
|
|
@ -154,7 +154,7 @@ static struct pingpong_dest *pp_client_exch_dest(const char *servername, int por
|
|||
{
|
||||
struct addrinfo *res, *t;
|
||||
struct addrinfo hints = {
|
||||
.ai_family = AF_INET,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
char *service;
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ static struct pingpong_dest *pp_client_exch_dest(const char *servername, int por
|
|||
{
|
||||
struct addrinfo *res, *t;
|
||||
struct addrinfo hints = {
|
||||
.ai_family = AF_INET,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
char *service;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ static struct pingpong_dest *pp_client_exch_dest(const char *servername, int por
|
|||
{
|
||||
struct addrinfo *res, *t;
|
||||
struct addrinfo hints = {
|
||||
.ai_family = AF_INET,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
char *service;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ static struct pingpong_dest *pp_client_exch_dest(const char *servername, int por
|
|||
{
|
||||
struct addrinfo *res, *t;
|
||||
struct addrinfo hints = {
|
||||
.ai_family = AF_INET,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
char *service;
|
||||
|
|
|
|||
|
|
@ -544,7 +544,7 @@ static int pp_client_connect(const char *servername, int port)
|
|||
int ret;
|
||||
int sockfd = -1;
|
||||
struct addrinfo hints = {
|
||||
.ai_family = AF_INET,
|
||||
.ai_family = AF_UNSPEC,
|
||||
.ai_socktype = SOCK_STREAM
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue