2013-12-12 15:33:35 +01:00
|
|
|
Author: Reinhard Max <max@suse.de>
|
|
|
|
|
|
|
|
XDMCP: For IPv6 add IPv6 link local addresses to the end of the list
|
|
|
|
|
|
|
|
For IPv6 add a link local addresses to the end of the list passed to
|
|
|
|
the XDMCP servers.
|
|
|
|
Reason: for link local addresses the XDMCP server would need to either
|
|
|
|
know the interface thru a scope identifier or try all available interfaces.
|
|
|
|
If they don't this address will fail in which case the XDMCP server
|
|
|
|
could still try the other addresses passed - however some only try
|
|
|
|
the first address and then give up.
|
|
|
|
Even if this seems to be the wrong place to fix this it seems to be
|
|
|
|
easier than fixing all display servers.
|
|
|
|
|
2019-09-18 14:48:07 +02:00
|
|
|
Index: xorg-server-1.20.5/os/access.c
|
2012-04-20 11:32:05 +02:00
|
|
|
===================================================================
|
2019-09-18 14:48:07 +02:00
|
|
|
--- xorg-server-1.20.5.orig/os/access.c
|
|
|
|
+++ xorg-server-1.20.5/os/access.c
|
|
|
|
@@ -827,7 +827,9 @@ DefineSelf(int fd)
|
2010-07-19 20:18:08 +02:00
|
|
|
|
2015-02-06 11:07:01 +01:00
|
|
|
/*
|
2012-04-20 11:32:05 +02:00
|
|
|
* ignore 'localhost' entries as they're not useful
|
|
|
|
- * on the other end of the wire
|
|
|
|
+ * on the other end of the wire and because on hosts
|
2015-02-06 11:07:01 +01:00
|
|
|
+ * with shared home dirs they'll result in conflicting
|
|
|
|
+ * entries in ~/.Xauthority
|
2012-04-20 11:32:05 +02:00
|
|
|
*/
|
|
|
|
if (ifr->ifa_flags & IFF_LOOPBACK)
|
|
|
|
continue;
|
2019-09-18 14:48:07 +02:00
|
|
|
@@ -848,6 +850,14 @@ DefineSelf(int fd)
|
2012-04-20 11:32:05 +02:00
|
|
|
else if (family == FamilyInternet6 &&
|
|
|
|
IN6_IS_ADDR_LOOPBACK((struct in6_addr *) addr))
|
|
|
|
continue;
|
2010-08-23 15:32:08 +02:00
|
|
|
+
|
2015-02-06 11:07:01 +01:00
|
|
|
+ /* Ignore IPv6 link local addresses (fe80::/10), because
|
|
|
|
+ * they need a scope identifier, which we have no way
|
|
|
|
+ * of telling to the other end.
|
|
|
|
+ */
|
|
|
|
+ if (family == FamilyInternet6 &&
|
|
|
|
+ IN6_IS_ADDR_LINKLOCAL((struct in6_addr *)addr))
|
|
|
|
+ continue;
|
2010-08-23 15:32:08 +02:00
|
|
|
#endif
|
2012-04-20 11:32:05 +02:00
|
|
|
XdmcpRegisterConnection(family, (char *) addr, len);
|
2010-08-23 15:32:09 +02:00
|
|
|
#if defined(IPv6) && defined(AF_INET6)
|