From: sababu <sangambabu1@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: sababu@redhat.com, jmaxwell@redhat.com, sababu <sangambabu1@gmail.com>
Subject: [PATCH] Qperf support for ipv4 when ipv6 is disabled at protocol layer
Date: Mon, 30 May 2022 15:45:31 +0530 [thread overview]
Message-ID: <20220530101531.173447-1-sangambabu1@gmail.com> (raw)
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
reply other threads:[~2022-05-30 10:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220530101531.173447-1-sangambabu1@gmail.com \
--to=sangambabu1@gmail.com \
--cc=jmaxwell@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sababu@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®