aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os/xdmcp.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-09 12:47:28 +0000
committermarha <marha@users.sourceforge.net>2011-03-09 12:47:28 +0000
commitca5d010292c57383da523797a095ac847e1fe103 (patch)
treec1ec0ec785c855bc5815714f6685deb10acdad0a /xorg-server/os/xdmcp.c
parent837a26770cb9f1d8d7a4ce40e06db9bb05683702 (diff)
downloadvcxsrv-ca5d010292c57383da523797a095ac847e1fe103.tar.gz
vcxsrv-ca5d010292c57383da523797a095ac847e1fe103.tar.bz2
vcxsrv-ca5d010292c57383da523797a095ac847e1fe103.zip
Enable only functions defined in windows XP
Enabled IPV6 compilation
Diffstat (limited to 'xorg-server/os/xdmcp.c')
-rw-r--r--xorg-server/os/xdmcp.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/xorg-server/os/xdmcp.c b/xorg-server/os/xdmcp.c
index d587e91b5..f4ecc9b57 100644
--- a/xorg-server/os/xdmcp.c
+++ b/xorg-server/os/xdmcp.c
@@ -62,6 +62,8 @@
static char *defaultDisplayClass = COMPILEDDISPLAYCLASS;
+extern void match_interface(u_long u_lQuery);
+
static int xdmcpSocket, sessionSocket;
static xdmcp_states state;
#if defined(IPv6) && defined(AF_INET6)
@@ -1602,9 +1604,6 @@ get_addr_by_name(
#ifdef XTHREADS_NEEDS_BYNAMEPARAMS
_Xgethostbynameparams hparams;
#endif
-#if defined(WIN32) && defined(TCPCONN)
- _XSERVTransWSAStartup();
-#endif
if (!(hep = _XGethostbyname(namestr, hparams)))
{
FatalError("Xserver: %s unknown host: %s\n", argtype, namestr);
@@ -1630,6 +1629,9 @@ get_manager_by_name(
int i)
{
+ PSOCKADDR_IN queryAddr = NULL;
+ u_long u_lqueryAddr = 0;
+
if ((i + 1) == argc)
{
FatalError("Xserver: missing %s host name in command line\n", argv[i]);
@@ -1641,6 +1643,9 @@ get_manager_by_name(
, &mgrAddr, &mgrAddrFirst
#endif
);
+ queryAddr = (PSOCKADDR_IN)&ManagerAddress;
+ u_lqueryAddr = queryAddr->sin_addr.S_un.S_addr;
+ match_interface(u_lqueryAddr);
}