This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IPV6 not correctly ifdef'd in socketmodule.c
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: dmeleedy, loewis
Priority: high Keywords:

Created on 2004-03-27 00:07 by dmeleedy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg20329 - (view) Author: David Meleedy (dmeleedy) Date: 2004-03-27 00:07
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");
msg20330 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-05-06 01:58
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?
msg20331 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-06-02 12:37
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
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40088
2004-03-27 00:07:45dmeleedycreate