[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2011-06-15 Thread Marko Lindqvist

Update of bug #17020 (project freeciv):

  Status:None => Wont Fix   
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2011-06-06 Thread Marko Lindqvist

Follow-up Comment #3, bug #17020 (project freeciv):

While our current code (with several patches gone in since this ticket was
first opened) does not provide full functionality of what this patch gets by
unconditionally using getaddrinfo(), original problem reported should be
handled. Current code tries to connect to both IPv6 and IPv4 address if both
are available.

For the time being I prefer our current code to this patch for backward
compatibility reasons. This patch would make getaddrinfo() and friends hard
requirement for Freeciv. For now we still want to support at least IPv4 in
systems lacking those.
Of course this patch can be improved too. I wait a couple of days for
comments. If none is given, I'll close the ticket.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2011-01-11 Thread Marko Lindqvist

Update of bug #17020 (project freeciv):

 Planned Release: => 2.3.0  


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2010-11-04 Thread anonymous

Follow-up Comment #2, bug #17020 (project freeciv):

Hey Jacob,

no, haven't seen that patch yet. To be honest, the patch I submitted is just
something I whipped up while waiting for the other player. If I find some
time this weekend I'll take a look and possibly follow up on that other
patch. Something's gotta change, though – "net_lookup_service" is nowhere
near the current state of the art ;)

Regards,
—octo

___

Reply to this item at:

  

___
  Nachricht geschickt von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2010-11-04 Thread Jacob Nevins

Follow-up Comment #1, bug #17020 (project freeciv):

Without having opened your patch yet: are you aware of the pending patch in
bug #15559 (which should be applied soon)? That reworks IPv6 handling
considerably; I don't know if it overlaps with yours (or solves the same
problem).

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17020] IPv6: Improve connecting to dual-stack system

2010-11-04 Thread anonymous

URL:
  

 Summary: IPv6: Improve connecting to dual-stack system
 Project: Freeciv
Submitted by: None
Submitted on: Donnerstag 04.11.2010 um 14:50 CET
Category: client
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: f...@octo.it
 Open/Closed: Open
 Release: r18414
 Discussion Lock: Any
Operating System: None
 Planned Release: 

___

Details:

I ran into a problem when setting up a game with two machines, both having
IPv6 connectivity: Both, server and client have global, public IPv6 addresses
and are able to connect to the internet via IPv6. For some reason (totally
unrelated), the server only bound to the IPv4 any-address. When trying to
connect to the host name, the IPv6 address was returned and tried, but no
connection could be made. Instead of trying the IPv4 address which was
returned as well, the client simply gave up and reported "connection
refused".

The attached patch implements the expected behavior: It iterates over all
addresses returned by getaddrinfo(3) and tries to establish a connection. If
connecting to an address fails, it continues with the next returned address.
This is the default behavior under UNIX and has the huge benefit of "working
just like any other program". For example, whether IPv4 or IPv6 is preferred
is controlled via the "/etc/gai.conf" configuration file and if a domain name
resolves to multiple addresses they will be tried in a pseudo-random
(round-robin) fashion.

In all likelihood this patch has some flaws. For example, I'm not 100%
certain if and where the file descriptor gets closed. Also, it is possible
that under Windows includes or defines are missing.

Best regards,
—octo



___

File Attachments:


---
Date: Donnerstag 04.11.2010 um 14:50 CET  Name: freeciv-ipv6-connect.patch 
Size: 2kB   By: None



___

Reply to this item at:

  

___
  Nachricht geschickt von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev