public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH] util: Fix debug print on failed SO_REUSEADDR setting in sock_l4()
Date: Wed, 13 Jul 2022 08:18:10 +0200	[thread overview]
Message-ID: <20220713061810.1428827-1-sbrivio@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Signed-off-by: Stefano Brivio <sbrivio(a)redhat.com>
---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 98946e4..2eea0ef 100644
--- a/util.c
+++ b/util.c
@@ -293,7 +293,7 @@ int sock_l4(const struct ctx *c, int af, uint8_t proto,
 	}
 
 	if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &y, sizeof(y)))
-		debug("Failed to set IPV6_V6ONLY on socket %i", fd);
+		debug("Failed to set SO_REUSEADDR on socket %i", fd);
 
 	if (bind(fd, sa, sl) < 0) {
 		/* We'll fail to bind to low ports if we don't have enough
-- 
@@ -293,7 +293,7 @@ int sock_l4(const struct ctx *c, int af, uint8_t proto,
 	}
 
 	if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &y, sizeof(y)))
-		debug("Failed to set IPV6_V6ONLY on socket %i", fd);
+		debug("Failed to set SO_REUSEADDR on socket %i", fd);
 
 	if (bind(fd, sa, sl) < 0) {
 		/* We'll fail to bind to low ports if we don't have enough
-- 
2.35.1


                 reply	other threads:[~2022-07-13  6:18 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=20220713061810.1428827-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).