svn commit: r337119 - stable/11/contrib/ofed/libibverbs/examples

Hans Petter Selasky hselasky at FreeBSD.org
Thu Aug 2 09:02:21 UTC 2018


Author: hselasky
Date: Thu Aug  2 09:02:19 2018
New Revision: 337119
URL: https://svnweb.freebsd.org/changeset/base/337119

Log:
  MFC r336453:
  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.
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/contrib/ofed/libibverbs/examples/rc_pingpong.c
  stable/11/contrib/ofed/libibverbs/examples/srq_pingpong.c
  stable/11/contrib/ofed/libibverbs/examples/uc_pingpong.c
  stable/11/contrib/ofed/libibverbs/examples/ud_pingpong.c
  stable/11/contrib/ofed/libibverbs/examples/xsrq_pingpong.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/ofed/libibverbs/examples/rc_pingpong.c
==============================================================================
--- stable/11/contrib/ofed/libibverbs/examples/rc_pingpong.c	Thu Aug  2 09:00:09 2018	(r337118)
+++ stable/11/contrib/ofed/libibverbs/examples/rc_pingpong.c	Thu Aug  2 09:02:19 2018	(r337119)
@@ -154,7 +154,7 @@ static struct pingpong_dest *pp_client_exch_dest(const
 {
 	struct addrinfo *res, *t;
 	struct addrinfo hints = {
-		.ai_family   = AF_INET,
+		.ai_family   = AF_UNSPEC,
 		.ai_socktype = SOCK_STREAM
 	};
 	char *service;

Modified: stable/11/contrib/ofed/libibverbs/examples/srq_pingpong.c
==============================================================================
--- stable/11/contrib/ofed/libibverbs/examples/srq_pingpong.c	Thu Aug  2 09:00:09 2018	(r337118)
+++ stable/11/contrib/ofed/libibverbs/examples/srq_pingpong.c	Thu Aug  2 09:02:19 2018	(r337119)
@@ -147,7 +147,7 @@ static struct pingpong_dest *pp_client_exch_dest(const
 {
 	struct addrinfo *res, *t;
 	struct addrinfo hints = {
-		.ai_family   = AF_INET,
+		.ai_family   = AF_UNSPEC,
 		.ai_socktype = SOCK_STREAM
 	};
 	char *service;

Modified: stable/11/contrib/ofed/libibverbs/examples/uc_pingpong.c
==============================================================================
--- stable/11/contrib/ofed/libibverbs/examples/uc_pingpong.c	Thu Aug  2 09:00:09 2018	(r337118)
+++ stable/11/contrib/ofed/libibverbs/examples/uc_pingpong.c	Thu Aug  2 09:02:19 2018	(r337119)
@@ -127,7 +127,7 @@ static struct pingpong_dest *pp_client_exch_dest(const
 {
 	struct addrinfo *res, *t;
 	struct addrinfo hints = {
-		.ai_family   = AF_INET,
+		.ai_family   = AF_UNSPEC,
 		.ai_socktype = SOCK_STREAM
 	};
 	char *service;

Modified: stable/11/contrib/ofed/libibverbs/examples/ud_pingpong.c
==============================================================================
--- stable/11/contrib/ofed/libibverbs/examples/ud_pingpong.c	Thu Aug  2 09:00:09 2018	(r337118)
+++ stable/11/contrib/ofed/libibverbs/examples/ud_pingpong.c	Thu Aug  2 09:02:19 2018	(r337119)
@@ -127,7 +127,7 @@ static struct pingpong_dest *pp_client_exch_dest(const
 {
 	struct addrinfo *res, *t;
 	struct addrinfo hints = {
-		.ai_family   = AF_INET,
+		.ai_family   = AF_UNSPEC,
 		.ai_socktype = SOCK_STREAM
 	};
 	char *service;

Modified: stable/11/contrib/ofed/libibverbs/examples/xsrq_pingpong.c
==============================================================================
--- stable/11/contrib/ofed/libibverbs/examples/xsrq_pingpong.c	Thu Aug  2 09:00:09 2018	(r337118)
+++ stable/11/contrib/ofed/libibverbs/examples/xsrq_pingpong.c	Thu Aug  2 09:02:19 2018	(r337119)
@@ -544,7 +544,7 @@ static int pp_client_connect(const char *servername, i
 	int ret;
 	int sockfd = -1;
 	struct addrinfo hints = {
-		.ai_family   = AF_INET,
+		.ai_family   = AF_UNSPEC,
 		.ai_socktype = SOCK_STREAM
 	};
 


More information about the svn-src-stable-11 mailing list