[PATCH 5/5] ws2_32: Dump the flow label and scope ID in debugstr_sockaddr().

Zebediah Figura zfigura at codeweavers.com
Fri Jul 23 11:39:11 CDT 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/ws2_32/socket.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 16bece395b8..7fb48698d2a 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -192,8 +192,8 @@ const char *debugstr_sockaddr( const struct WS_sockaddr *a )
         p = WS_inet_ntop( WS_AF_INET6, &sin->sin6_addr, buf, sizeof(buf) );
         if (!p)
             p = "(unknown IPv6 address)";
-        return wine_dbg_sprintf("{ family AF_INET6, address %s, port %d }",
-                                p, ntohs(sin->sin6_port));
+        return wine_dbg_sprintf("{ family AF_INET6, address %s, flow label %#x, port %d, scope %u }",
+                                p, sin->sin6_flowinfo, ntohs(sin->sin6_port), sin->sin6_scope_id );
     }
     case WS_AF_IPX:
     {
-- 
2.30.2




More information about the wine-devel mailing list