Issue 984654: socket module does not support AF_NETLINK (original) (raw)
Issue984654
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/40499
classification
Title: | socket module does not support AF_NETLINK | ||
---|---|---|---|
Type: | Stage: | ||
Components: | Extension Modules | Versions: | Python 2.4 |
process
Status: | closed | Resolution: | accepted |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | Nosy List: | akuchling, doko, loewis | |
Priority: | normal | Keywords: | patch |
Created on 2004-07-03 16:15 by doko, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
socketmodule.diff | doko,2004-07-03 16:15 | patch to add missing constants |
Messages (4) | ||
---|---|---|
msg46308 - (view) | Author: Matthias Klose (doko) * ![]() |
Date: 2004-07-03 16:15 |
[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 */ | ||
msg46309 - (view) | Author: A.M. Kuchling (akuchling) * ![]() |
Date: 2004-07-07 14:45 |
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. | ||
msg46310 - (view) | Author: Martin v. Löwis (loewis) * ![]() |
Date: 2004-07-17 08:13 |
Logged In: YES user_id=21627 I think the request is about adding the constants if the system offers them; I have no problems with that. | ||
msg46311 - (view) | Author: Martin v. Löwis (loewis) * ![]() |
Date: 2004-07-19 17:01 |
Logged In: YES user_id=21627 Thanks for the patch. Applied as socketmodule.c 1.296. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:05 | admin | set | github: 40499 |
2004-07-03 16:15:09 | doko | create |