[master] 3f9ccf94d varnishtest: Give the tunnel enough space for IPv6

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri May 28 11:55:06 UTC 2021


commit 3f9ccf94d795e7ea517af62fbc0acfe7362ae6bc
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri May 28 13:53:33 2021 +0200

    varnishtest: Give the tunnel enough space for IPv6

diff --git a/bin/varnishtest/vtc_tunnel.c b/bin/varnishtest/vtc_tunnel.c
index 418ce9195..95e3b880e 100644
--- a/bin/varnishtest/vtc_tunnel.c
+++ b/bin/varnishtest/vtc_tunnel.c
@@ -136,8 +136,8 @@ struct tunnel {
 
 	char			listen[256];
 	int			lsock;
-	char			laddr[32];
-	char			lport[32];
+	char			laddr[VTCP_ADDRBUFSIZE];
+	char			lport[VTCP_PORTBUFSIZE];
 
 	int			asock;
 
@@ -593,8 +593,7 @@ tunnel_listen(struct tunnel *t)
 	assert(t->lsock > 0);
 	sua = VSA_getsockname(t->lsock, buf, sizeof buf);
 	AN(sua);
-	VTCP_name(sua, t->laddr, sizeof t->laddr,
-	    t->lport, sizeof t->lport);
+	VTCP_name(sua, t->laddr, sizeof t->laddr, t->lport, sizeof t->lport);
 
 	/* Record the actual port, and reuse it on subsequent starts */
 	if (VSA_Get_Proto(sua) == AF_INET)


More information about the varnish-commit mailing list