Re: XDMCP problems (was: [XonX-Announce] XFree86 4.4.0 RC2)

2004-01-01 Thread Matthieu Herrb
  
  I removed the HasGetIfAddrs definition from darwin.cf again and tried a 
  different aproach to solve the XDMCP problem. I reordered the 
  connections in a way that connections of the same type as the XDMCP 
  manager connection are send first. And it worked. :-)

Thanks, I've commited this patch. 

I've also commited a fix for the original problem in XDM (returning
out of memory when an unsuppoted connection type is sent first in the
request paquet) by impementing a policy in SelectConnectionTypeIndex()
(in xdm/policy.c) to choose a connexion type that is supported. 

  P.S. two problems still are left unresolved:
  -broadcast does not send XDMCP requests to a broadcast address and 
  DefineSelf() does not deliver IPv6 addresses when HasGetIfAddrs  is
  set.

I've fixed the the IPv6 problem with getifaddrs() and enabled
HasGetIfAddrs for darwin, so -broadcast works now. 

There are still 2 problems remaining :
-multicast doesn't seem to work on Darwin the query packets are sent
but xdm doesn't see them. And for now the link-local address for the
loopback interface  (fe80::1) is still (wrongly) advertized in the
request packet. I hope to be able to fix these problems soon.




Matthieu
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: XDMCP problems (was: [XonX-Announce] XFree86 4.4.0 RC2)

2003-12-31 Thread Mario Klebsch
Hi!

Am Mittwoch, 31.12.03 um 02:42 Uhr schrieb Mario Klebsch:

1. I'm using '#define HasGetIfAddrs YES' in darwin.cf (This should
   probably be the default, but I forgot about it until now), it
   changes the way network interfaces addresses are collected.
I did that change manually and broadcasts now work fine. but...
I also realize, that the GetIfAddrs does not include the IPv6 
addresses anymore. So it would solve my initial problem, too, but 
would leave a compatibility problem in the XDMCP code. I suspect, this 
not really is a fix and an additional bug in the GetIfAddrs code has 
lead to the IPv6 addresses being left out.
I removed the HasGetIfAddrs definition from darwin.cf again and tried a 
different aproach to solve the XDMCP problem. I reordered the 
connections in a way that connections of the same type as the XDMCP 
manager connection are send first. And it worked. :-)

So, here is my patch to xc/progrqams/Xserver/os/xdmcp.c:



xdmcp.c.patch
Description: Binary data


I hope this solves the compatibility problem without introducing new 
problems and I wish everyone on these two mailing lists a happy new 
year.

73, Mario

P.S. two problems still are left unresolved:
-broadcast does not send XDMCP requests to a broadcast address and 
DefineSelf() does not deliver IPv6 addresses when HasGetIfAddrs is set.
--
Mario Klebsch  [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518


Re: XDMCP problems (was: [XonX-Announce] XFree86 4.4.0 RC2)

2003-12-30 Thread Matthieu Herrb
Mario Klebsch wrote (in a message from Tuesday 30)
  Hi!
  
  I tried your fix of the call to XdmcpFlush() and it works for me. Thank 
  you.
  
  Unfortunately, the -broadcast flag still does not work. The X server 
  sends the XDMCP queries to its own IP address instead of using the 
  networks broadcast address.

I can't reproduce it here. But there are 2 things that may influence
that : 

1. I'm using '#define HasGetIfAddrs YES' in darwin.cf (This should
   probably be the default, but I forgot about it until now), it
   changes the way network interfaces addresses are collected. 
2. I've just commited a fix for a stupid typo in Xserver/os/access.c
   that was causing localhost addresses to be advertized by error in
   the 'Request' message. 

Can you try these 2 things ? 



Matthieu
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel