There are still areas where internal DCE-RPC connection implies presence of IPv4 stack and addresses. This wouldn't work in pure IPv6 configuration. source3/librpc/rpc/dcerpc_ep.c: rc = tsocket_address_inet_from_strings(tmp_ctx, source3/librpc/rpc/dcerpc_ep.c- "ip", source3/librpc/rpc/dcerpc_ep.c- "127.0.0.1", -- source3/rpc_client/cli_winreg_int.c: rc = tsocket_address_inet_from_strings(mem_ctx, source3/rpc_client/cli_winreg_int.c- "ip", source3/rpc_client/cli_winreg_int.c- "127.0.0.1", -- source3/rpc_server/netlogon/srv_netlog_nt.c: rc = tsocket_address_inet_from_strings(mem_ctx, source3/rpc_server/netlogon/srv_netlog_nt.c- "ip", source3/rpc_server/netlogon/srv_netlog_nt.c- "127.0.0.1", -- source3/rpc_server/netlogon/srv_netlog_nt.c: rc = tsocket_address_inet_from_strings(mem_ctx, source3/rpc_server/netlogon/srv_netlog_nt.c- "ip", source3/rpc_server/netlogon/srv_netlog_nt.c- "127.0.0.1", -- source3/rpc_server/rpc_ncacn_np.c: rc = tsocket_address_inet_from_strings(mem_ctx, source3/rpc_server/rpc_ncacn_np.c- "ip", source3/rpc_server/rpc_ncacn_np.c- "127.0.0.1", -- source3/rpc_server/spoolss/srv_spoolss_util.c: rc = tsocket_address_inet_from_strings(mem_ctx, source3/rpc_server/spoolss/srv_spoolss_util.c- "ip", source3/rpc_server/spoolss/srv_spoolss_util.c- "127.0.0.1", -- source3/winbindd/winbindd_pam.c: rc = tsocket_address_inet_from_strings(frame, source3/winbindd/winbindd_pam.c- "ip", source3/winbindd/winbindd_pam.c- "127.0.0.1", --
we should ask getnameinfo for the IP address of localhost, a reasonalby well configured systems will either return 127.0.0.1 or ::1 and we should connect to whatever we get back there, right?