mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
ofed: allow using IPv6 address in rc_pingpong server
Summary:
The current OFED code allows binding server to IPv6 address. It was added back in 91fc39561d
Sponsored by: Intel Corporation
MFC after: 3 days
Reviewers: hselasky
Subscribers: imp
Differential Revision: https://reviews.freebsd.org/D37196
This commit is contained in:
parent
c72854c06a
commit
35c87c070a
@ -230,7 +230,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
|
|||||||
struct addrinfo *res, *t;
|
struct addrinfo *res, *t;
|
||||||
struct addrinfo hints = {
|
struct addrinfo hints = {
|
||||||
.ai_flags = AI_PASSIVE,
|
.ai_flags = AI_PASSIVE,
|
||||||
.ai_family = AF_INET,
|
.ai_family = AF_UNSPEC,
|
||||||
.ai_socktype = SOCK_STREAM
|
.ai_socktype = SOCK_STREAM
|
||||||
};
|
};
|
||||||
char *service;
|
char *service;
|
||||||
|
@ -238,7 +238,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
|
|||||||
struct addrinfo *res, *t;
|
struct addrinfo *res, *t;
|
||||||
struct addrinfo hints = {
|
struct addrinfo hints = {
|
||||||
.ai_flags = AI_PASSIVE,
|
.ai_flags = AI_PASSIVE,
|
||||||
.ai_family = AF_INET,
|
.ai_family = AF_UNSPEC,
|
||||||
.ai_socktype = SOCK_STREAM
|
.ai_socktype = SOCK_STREAM
|
||||||
};
|
};
|
||||||
char *service;
|
char *service;
|
||||||
|
@ -204,7 +204,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
|
|||||||
struct addrinfo *res, *t;
|
struct addrinfo *res, *t;
|
||||||
struct addrinfo hints = {
|
struct addrinfo hints = {
|
||||||
.ai_flags = AI_PASSIVE,
|
.ai_flags = AI_PASSIVE,
|
||||||
.ai_family = AF_INET,
|
.ai_family = AF_UNSPEC,
|
||||||
.ai_socktype = SOCK_STREAM
|
.ai_socktype = SOCK_STREAM
|
||||||
};
|
};
|
||||||
char *service;
|
char *service;
|
||||||
|
@ -202,7 +202,7 @@ static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx,
|
|||||||
struct addrinfo *res, *t;
|
struct addrinfo *res, *t;
|
||||||
struct addrinfo hints = {
|
struct addrinfo hints = {
|
||||||
.ai_flags = AI_PASSIVE,
|
.ai_flags = AI_PASSIVE,
|
||||||
.ai_family = AF_INET,
|
.ai_family = AF_UNSPEC,
|
||||||
.ai_socktype = SOCK_STREAM
|
.ai_socktype = SOCK_STREAM
|
||||||
};
|
};
|
||||||
char *service;
|
char *service;
|
||||||
|
@ -596,7 +596,7 @@ static int pp_server_connect(int port)
|
|||||||
int sockfd = -1, connfd;
|
int sockfd = -1, connfd;
|
||||||
struct addrinfo hints = {
|
struct addrinfo hints = {
|
||||||
.ai_flags = AI_PASSIVE,
|
.ai_flags = AI_PASSIVE,
|
||||||
.ai_family = AF_INET,
|
.ai_family = AF_UNSPEC,
|
||||||
.ai_socktype = SOCK_STREAM
|
.ai_socktype = SOCK_STREAM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user