linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Qperf support for ipv4 when ipv6 is disabled at protocol layer
@ 2022-05-30 10:15 sababu
  0 siblings, 0 replies; only message in thread
From: sababu @ 2022-05-30 10:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: sababu, jmaxwell, sababu

From: sababu <sababu@redhat.com>

    With qperf version 0.4.9 we defined AI_FAMILY as AF_UNSPEC, starting
    qperf 0.4.11 the same is changed to AF_INET6 which causes issues
    when ipv6 is disabled at protocol layer (as a kernel command line
    arguement). This patch reverses the behavior.

Signed-off-by: sababu <sangambabu1@gmail.com>
---
 src/qperf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qperf.c b/src/qperf.c
index 89fe5b8..4de0cce 100644
--- a/src/qperf.c
+++ b/src/qperf.c
@@ -1418,7 +1418,7 @@ server_listen(void)
     AI *ai;
     AI hints ={
         .ai_flags    = AI_PASSIVE | AI_NUMERICSERV,
-	.ai_family   = AF_INET6,
+	.ai_family   = AF_UNSPEC,
         .ai_socktype = SOCK_STREAM
     };
     AI *ailist = getaddrinfo_port(0, ListenPort, &hints);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-30 10:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 10:15 [PATCH] Qperf support for ipv4 when ipv6 is disabled at protocol layer sababu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).