After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354950 - Current ORBit2 apparently doesn't allow contacting other hosts with IPv4
Current ORBit2 apparently doesn't allow contacting other hosts with IPv4
Status: RESOLVED FIXED
Product: ORBit2
Classification: Deprecated
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: ORBit maintainers
ORBit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-08 11:23 UTC by Tor Lillqvist
Modified: 2006-09-09 08:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tor Lillqvist 2006-09-08 11:23:46 UTC
A recent change to link_connection_do_initiate() seems to prevent ORBit2 from contacting other hosts using IPv4 completely. (This is just my impression from reading the code, but the author of the change confirms that it indeed looks so. No hard verification, though.)

Here is our mail exchange:

> Your recent change to linc-protocols.c in ORBit2 caused a slight
> problem for me on Win32. On Win32, link_protocol_get_sockinfo_ipv4()
> makes sure the string "127.0.0.1" is always what's used for the local
> host. Not, for instance "localhost" or what gethostname() returns. We
> want to be 100% sure we always use the loopback interface.
> 
> I worked around it by adding an explicit check for "127.0.0.1":

[...]

> This made the problem go away for me.
> 
> But anyway, looking at what this code you added does, doesn't it
> prevent contacting other hosts? Is this really the intention? (If I
> have misunderstood the code snippet, stop reading now, and tell me ;)

Yes, I think you might be right here.  I think the right approach might
be to back out this patch.  Could you file a bug about this issue at
bugzilla.gnome.org in the ORBit2 category and cc: me on the bug report?

> I know that this restriction is good enough for presumably the vast
> majority of use cases (heck, in GNOME all use of ORBit2 even uses Unix
> domain sockets, doesn't it?), but should it now then be set in stone
> like this? If yes, isn't there then lots of code left elsewhere [in ORBit2] that
> can be cleaned away, and why not then just use the loopback address
> everywhere in the IPv4 cases? (Hmm, does it then make any sense to
> have the IPv6 support in ORBit2, why would one want to allow
> connecting other hosts with IPv6 but not IPv4?)

Yes, I think you are right and my change should be backed out.  Thanks
for catching this.
Comment 1 Tor Lillqvist 2006-09-09 08:11:40 UTC
Problem confirmed by Jules Colding, who also backed out Brian's changes from CVS.