[Freeciv-Dev] [bug #22463] find_next_free_port() and server port bind() do not match

2014-08-20 Thread Marko Lindqvist
Update of bug #22463 (project freeciv):

  Status:  Ready For Test = Fixed  
 Assigned to:None = cazfi  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/bugs/?22463

___
  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 #22463] find_next_free_port() and server port bind() do not match

2014-08-15 Thread Marko Lindqvist
Update of bug #22463 (project freeciv):

  Status: In Progress = Ready For Test 

___

Follow-up Comment #2:

- Made IPv6 enabled client to check all addresses (accept any), not just
IPv4 ones
- Added parameter not_avail_ok for find_next_free_port() to allow check to
let EADDRNOTAVAIL pass like server bind() does
- Added comments near server side bind() about the importance of keeping
client side check in sync
- Check return value of socket() in find_next_free_port() and log error if it
fails
- Pass correct family to socket() call; one for the address being tested, not
the general limit find_next_free_port() received and used in construction of
the list

(file #21743)
___

Additional Item Attachment:

File name: BindAll-2.patchSize:4 KB


___

Reply to this item at:

  http://gna.org/bugs/?22463

___
  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 #22463] find_next_free_port() and server port bind() do not match

2014-08-13 Thread Marko Lindqvist
Update of bug #22463 (project freeciv):

  Status:  Ready For Test = In Progress


___

Reply to this item at:

  http://gna.org/bugs/?22463

___
  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 #22463] find_next_free_port() and server port bind() do not match

2014-08-12 Thread Marko Lindqvist
URL:
  http://gna.org/bugs/?22463

 Summary: find_next_free_port() and server port bind() do not
match
 Project: Freeciv
Submitted by: cazfi
Submitted on: Wed 13 Aug 2014 02:11:25 AM EEST
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: In Progress
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.4.4, 2.5.0-beta2, 2.6.0

___

Details:

Investigating https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757876 I
noticed (likely cause to it) that
find_next_free_port() considers port which is free in *any* interface, but
server actually wants to bind() to *all* interfaces.




___

Reply to this item at:

  http://gna.org/bugs/?22463

___
  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 #22463] find_next_free_port() and server port bind() do not match

2014-08-12 Thread Marko Lindqvist
Update of bug #22463 (project freeciv):

  Status: In Progress = Ready For Test 

___

Follow-up Comment #1:

Fix.

(file #21700)
___

Additional Item Attachment:

File name: BindAll.patch  Size:1 KB


___

Reply to this item at:

  http://gna.org/bugs/?22463

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


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