Issue 643005: socket.inet_aton("255.255.255.255") - Python tracker (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/37526

classification

Title: socket.inet_aton("255.255.255.255")
Type: Stage:
Components: Library (Lib) Versions:

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: exarkun, gvanrossum, tzot
Priority: high Keywords:

Created on 2002-11-24 09:15 by exarkun, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg13440 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2002-11-24 09:15
This comes up as an error on platforms with a 32 bit in_addr_t type, because 0xFFFFFFFF -> -1 -> INADDR_ANY -> error condition. socketmodule's inet_aton() should probably be changed to use inet_aton if available (I'm not sure how to make the appropriate platform checks, or I'd submit a patch). It isn't clear to me the best way to work around this on platforms lacking inet_aton(), short of re-implementing its functionality.
msg13441 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2003-01-13 09:52
Logged In: YES user_id=539787 I'm in the process of trying to make a patch, since I found this relating to a mistaken 8-byte result in 64-bit machines. When I come up with an answer, I will post a link to the patch here.
msg13442 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-02-12 23:15
Logged In: YES user_id=6380 Fixed in Python 2.3 CVS by using inet_aton(). Does this need to be backported to 2.2.3?
msg13443 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2003-02-13 16:25
Logged In: YES user_id=539787 I believe all users having used the old inet_aton have used workarounds if 0xffffffff could be used as an argument (I know I have). It sure would be nice, though (and make 2.2.3 the "industrial strength" version :)
msg13444 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-02-13 16:39
Logged In: YES user_id=6380 The fix needed configuration work because Windows doesn't have inet_aton(). :-) I'm calling for a volunteer to backport this to 2.2.3.
msg13445 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2003-02-13 16:51
Logged In: YES user_id=539787 If none other volunteers, I'll give it a shot during the weekend (I don't have VC++ but a friend has, and I need to download the current 2.2.3 tree).
History
Date User Action Args
2022-04-10 16:05:56 admin set github: 37526
2002-11-24 09:15:06 exarkun create