Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket module does not support AF_NETLINK #40499

Closed
doko42 opened this issue Jul 3, 2004 · 4 comments
Closed

socket module does not support AF_NETLINK #40499

doko42 opened this issue Jul 3, 2004 · 4 comments
Labels
extension-modules C modules in the Modules dir

Comments

@doko42
Copy link
Member

doko42 commented Jul 3, 2004

BPO 984654
Nosy @loewis, @akuchling, @doko42
Files
  • socketmodule.diff: patch to add missing constants
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2004-07-19.17:01:49.000>
    created_at = <Date 2004-07-03.16:15:09.000>
    labels = ['extension-modules']
    title = 'socket module does not support AF_NETLINK'
    updated_at = <Date 2004-07-19.17:01:49.000>
    user = 'https://github.com/doko42'

    bugs.python.org fields:

    activity = <Date 2004-07-19.17:01:49.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2004-07-03.16:15:09.000>
    creator = 'doko'
    dependencies = []
    files = ['6073']
    hgrepos = []
    issue_num = 984654
    keywords = ['patch']
    message_count = 4.0
    messages = ['46308', '46309', '46310', '46311']
    nosy_count = 3.0
    nosy_names = ['loewis', 'akuchling', 'doko']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue984654'
    versions = ['Python 2.4']

    @doko42
    Copy link
    Member Author

    doko42 commented Jul 3, 2004

    [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          
             */

    @doko42 doko42 closed this as completed Jul 3, 2004
    @doko42 doko42 added the extension-modules C modules in the Modules dir label Jul 3, 2004
    @doko42 doko42 closed this as completed Jul 3, 2004
    @doko42 doko42 added the extension-modules C modules in the Modules dir label Jul 3, 2004
    @akuchling
    Copy link
    Member

    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.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jul 17, 2004

    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.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jul 19, 2004

    Logged In: YES
    user_id=21627

    Thanks for the patch. Applied as socketmodule.c 1.296.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants