[Python-bugs-list] [ python-Bugs-643005 ] socket.inet_aton("255.255.255.255")

SourceForge.net noreply@sourceforge.net
Wed, 12 Feb 2003 15:15:50 -0800


Bugs item #643005, was opened at 2002-11-24 04: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: Closed
>Resolution: Fixed
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: Guido van Rossum (gvanrossum)
Date: 2003-02-12 18:15

Message:
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?


----------------------------------------------------------------------

Comment By: Christos Georgiou (tzot)
Date: 2003-01-13 04: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