[Python-bugs-list] [ python-Bugs-744164 ] ipv6 sockaddr is bad

SourceForge.net noreply@sourceforge.net
Mon, 16 Jun 2003 18:28:21 -0700


Bugs item #744164, was opened at 2003-05-27 10:22
Message generated for change (Comment added) made by cypherpunks
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=744164&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: cypherpunks (cypherpunks)
Assigned to: Nobody/Anonymous (nobody)
>Summary: ipv6 sockaddr is bad

Initial Comment:
ipv6 addrinfo becomes a 4-tuple in python, with
additional scope-id and flowinfo members that are never
used in practice by normal apps. scope id might be used
once in a blue moon by something like a dhcp server
(use link local addresses).

this difference causes a large portion of work involved
in porting python apps to suppot v6. i suggest it be
changed to just an address-port tuple, or add some kind
of hack to allow it ot be unpacked like "host, port =
addr".

  -- erno kuusela <erno@iki.fi>

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

>Comment By: cypherpunks (cypherpunks)
Date: 2003-06-17 01:28

Message:
Logged In: YES 
user_id=16535

(sorry, title should have sockaddr and not addrinfo.)

It is a bug because it is gratuitous incompatibility between
6/4. "large portion" does not mean "huge absolute amount" -
just that at least for server apps otherwise you'd only need
to change a couple of lines and libraries expecting ipv4
sockets wouldn't know the difference. just grep 'host, port'
from most networking programs.

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

Comment By: Martin v. Löwis (loewis)
Date: 2003-06-14 08:20

Message:
Logged In: YES 
user_id=21627

Why is this a bug, and what kind of large portion of work is
involved to support IPv6? Please have a look at
httplib/ftplib, which both support IPv6, with minimum amount
of work.

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

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