[ python-Bugs-924294 ] IPV6 not correctly ifdef'd in socketmodule.c

SourceForge.net noreply at sourceforge.net
Wed Jun 2 08:37:46 EDT 2004


Bugs item #924294, was opened at 2004-03-27 01:07
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924294&group_id=5470

Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 7
Submitted By: David Meleedy (dmeleedy)
Assigned to: Martin v. Löwis (loewis)
Summary: IPV6 not correctly ifdef'd in socketmodule.c

Initial Comment:
buckaroo-75: diff -c3 socketmodule.c-dist socketmodule.c
*** socketmodule.c-dist Fri Mar 26 18:51:52 2004
--- socketmodule.c      Fri Mar 26 18:52:47 2004
***************
*** 2971,2977 ****
                return NULL;
        }
  
! #ifndef ENABLE_IPV6
        if(af == AF_INET6) {
                PyErr_SetString(socket_error,
                                "can't use AF_INET6,
IPv6 is disabled");
--- 2971,2977 ----
                return NULL;
        }
  
! #ifdef ENABLE_IPV6
        if(af == AF_INET6) {
                PyErr_SetString(socket_error,
                                "can't use AF_INET6,
IPv6 is disabled");


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

>Comment By: Martin v. Löwis (loewis)
Date: 2004-06-02 14:37

Message:
Logged In: YES 
user_id=21627

I have applied a similar patch as

socketmodule.c 1.290, 1.271.6.8
NEWS  1.831.4.114

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

Comment By: Martin v. Löwis (loewis)
Date: 2004-05-06 03:58

Message:
Logged In: YES 
user_id=21627

Can you please elaborate? Why should Python raise an
exception that IPv6 is disabled if ENABLE_IPV6 is defined?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924294&group_id=5470



More information about the Python-bugs-list mailing list