Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 09:02:19 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337119 - stable/11/contrib/ofed/libibverbs/examples
Message-ID:  <201808020902.w7292Jpc067238@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 	};
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020902.w7292Jpc067238>