[Patches] [ python-Patches-984654 ] socket module does not support AF_NETLINK

SourceForge.net noreply at sourceforge.net
Wed Jul 7 16:45:31 CEST 2004


Patches item #984654, was opened at 2004-07-03 12:15
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=984654&group_id=5470

Category: Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket module does not support AF_NETLINK

Initial Comment:
[forwarded from http://bugs.debian.org/257444]

The socket module is missing the AF_NETLINK constant
and the associated 
support, as well as a whole bunch of others. The list
of missing address 
families seems to be: 
 
#define AF_ATMPVC       8       /* ATM PVCs           
         */ 
#define AF_DECnet       12      /* Reserved for DECnet
project  */ 
#define AF_NETBEUI      13      /* Reserved for
802.2LLC project*/ 
#define AF_SECURITY     14      /* Security callback
pseudo AF */ 
#define AF_KEY          15      /* PF_KEY key
management API */ 
#define AF_NETLINK      16 
#define AF_ROUTE        AF_NETLINK /* Alias to emulate
4.4BSD */ 
#define AF_ASH          18      /* Ash                
         */ 
#define AF_ECONET       19      /* Acorn Econet       
         */ 
#define AF_ATMSVC       20      /* ATM SVCs           
         */ 
#define AF_SNA          22      /* Linux SNA Project
(nutters!) */ 
#define AF_IRDA         23      /* IRDA sockets       
         */ 
#define AF_PPPOX        24      /* PPPoX sockets      
         */ 
#define AF_WANPIPE      25      /* Wanpipe API Sockets */ 
#define AF_LLC          26      /* Linux LLC          
         */ 


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

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-07-07 10:45

Message:
Logged In: YES 
user_id=11375

This is really a feature request.  It would be easy to add
the various AF_* constants to the module, but truly
supporting all these new families requires appropriate
changes to the makesockaddr(), getsockaddrarg(), and
getsockaddrlen() functions in Modules/socketmodule.c.  I
don't know what the address strings/objects for the various
families look like, and have no idea where to find such
information.

If AF_NETLINK is important, we can certainly try to
implement that one family.  Something obscure like AF_SNA is
unlikely to ever be supported in the absence of a patch.




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

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


More information about the Patches mailing list