public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] util: Fix debug print on failed SO_REUSEADDR setting in sock_l4()
@ 2022-07-13  6:18 Stefano Brivio
  0 siblings, 0 replies; only message in thread
From: Stefano Brivio @ 2022-07-13  6:18 UTC (permalink / raw)
  To: passt-dev

[-- 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


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

only message in thread, other threads:[~2022-07-13  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13  6:18 [PATCH] util: Fix debug print on failed SO_REUSEADDR setting in sock_l4() Stefano Brivio

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).