[Python-bugs-list] [ python-Bugs-643005 ] socket.inet_aton("255.255.255.255")
SourceForge.net
noreply@sourceforge.net
Mon, 13 Jan 2003 01:52:38 -0800
Bugs item #643005, was opened at 2002-11-24 11:15
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=643005&group_id=5470
Category: Python Library
Group: Platform-specific
Status: Open
Resolution: None
Priority: 6
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket.inet_aton("255.255.255.255")
Initial Comment:
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.
----------------------------------------------------------------------
Comment By: Christos Georgiou (tzot)
Date: 2003-01-13 11:52
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=643005&group_id=5470