Bug 342

Summary: Prune 0.0.0.0 addresses in os/access.c
Product: xorg Reporter: Harold L Hunt II <harold>
Component: Server/GeneralAssignee: Harold L Hunt II <harold>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: highest    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 351    
Attachments:
Description Flags
Prune 0.0.0.0 address in os/access.c none

Description Harold L Hunt II 2004-03-17 16:27:16 UTC
Filter all 0.0.0.0 addresses from being sent to the other end of the wire when
using Xdmcp.  Suggested on devel@xfree86.org and discussed by many people in
that and other forums.

This affects Cygwin specifically because Windows returns the address 0.0.0.0 for
any enabled but unconfigured NICs in the system, such as a wireless card that is
not currently getting a signal or a wired NIC with the cable unplugged.  Sending
0.0.0.0 over the wire to an XDM server causes that XDM server to attempt to
connect only to the 0.0.0.0 address rather than to a valid address; the
connection then fails and the Xdmcp session is aborted.  This patch prevents
that from happening on such platforms.

Harold
Comment 1 Harold L Hunt II 2004-03-17 16:27:40 UTC
Created attachment 150 [details] [review]
Prune 0.0.0.0 address in os/access.c
Comment 2 Harold L Hunt II 2004-03-17 16:29:12 UTC
I will commit this soon if no one complains.  It has been build tested on Cygwin
and used in the Cygwin production builds since 2004/01/28 without problems.

Harold
Comment 3 Egbert Eich 2004-03-18 03:06:31 UTC
I haven't looked at the code in detail, but shouldn't you test for 
family == FamilyInternet? 
How come we only check for localhost at the first location?
Since this check is done so often why not create a macro?
Comment 4 Harold L Hunt II 2004-03-19 08:20:47 UTC
Moving 1.0 -> 1.1 blocker.

Harold
Comment 5 Alexander Gottwald 2004-07-27 03:14:58 UTC

*** This bug has been marked as a duplicate of 784 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.