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

AF_NETLINK sockets basic support #41447

Closed
drphil mannequin opened this issue Jan 15, 2005 · 4 comments
Closed

AF_NETLINK sockets basic support #41447

drphil mannequin opened this issue Jan 15, 2005 · 4 comments
Labels
extension-modules C modules in the Modules dir

Comments

@drphil
Copy link
Mannequin

drphil mannequin commented Jan 15, 2005

BPO 1103116
Nosy @loewis
Files
  • netlink_patch.diff: netlink patch
  • 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 2006-01-14.18:13:35.000>
    created_at = <Date 2005-01-15.22:23:27.000>
    labels = ['extension-modules']
    title = 'AF_NETLINK sockets basic support'
    updated_at = <Date 2006-01-14.18:13:35.000>
    user = 'https://bugs.python.org/drphil'

    bugs.python.org fields:

    activity = <Date 2006-01-14.18:13:35.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2005-01-15.22:23:27.000>
    creator = 'drphil'
    dependencies = []
    files = ['6438']
    hgrepos = []
    issue_num = 1103116
    keywords = ['patch']
    message_count = 4.0
    messages = ['47554', '47555', '47556', '47557']
    nosy_count = 2.0
    nosy_names = ['loewis', 'drphil']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1103116'
    versions = ['Python 2.4']

    @drphil
    Copy link
    Mannequin Author

    drphil mannequin commented Jan 15, 2005

    This patch adds everything needed to manipulate NETLINK
    addresses so that it is possible to use NETLINK sockets.

    Nothing is done in the patch for autoconf stuff, even
    if the following should do the trick :

    --- configure.in.ori    2005-01-10 17:09:32.000000000 +0100
    +++ configure.in        2005-01-06 18:53:18.000000000 +0100
    @@ -967,7 +967,7 @@
     sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h
    sys/lock.h sys/mkdev.h \
     sys/modem.h \
     sys/param.h sys/poll.h sys/select.h sys/socket.h
    sys/time.h sys/times.h \
    -sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
    +sys/un.h linux/netlink.h sys/utsname.h sys/wait.h
    pty.h libutil.h \
     sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
     bluetooth/bluetooth.h)
     AC_HEADER_DIRENT
    --- pyconfig.h.ori      2005-01-10 17:11:11.000000000 +0100
    +++ pyconfig.h  2005-01-06 19:27:33.000000000 +0100
    @@ -559,6 +559,9 @@
     /* Define to 1 if you have the <sys/un.h> header file. */
     #define HAVE_SYS_UN_H 1
    +/* Define to 1 if you have the <linux/netlink.h>
    header file. */
    +#define HAVE_LINUX_NETLINK_H 1
    +
     /* Define to 1 if you have the <sys/utsname.h> header
    file. */
     #define HAVE_SYS_UTSNAME_H 1

    @drphil drphil mannequin closed this as completed Jan 15, 2005
    @drphil drphil mannequin added the extension-modules C modules in the Modules dir label Jan 15, 2005
    @drphil drphil mannequin closed this as completed Jan 15, 2005
    @drphil drphil mannequin added the extension-modules C modules in the Modules dir label Jan 15, 2005
    @drphil
    Copy link
    Mannequin Author

    drphil mannequin commented Jan 16, 2005

    Logged In: YES
    user_id=340305

    This additionnal patch give a more correct use of
    PyArg_ParseTuple

    --- socketmodule.c.ori     2005-01-15 23:55:47.000000000 +0100
    +++ socketmodule.c      2005-01-16 01:25:54.000000000 +0100
    @@ -1106,7 +1106,7 @@
                                    args->ob_type->tp_name);
                            return 0;
                    }
    -               if (!PyArg_ParseTuple(args, "II", &pid,
    &groups))
    +               if (!PyArg_ParseTuple(args,
    "II:getsockaddrarg", &pid, &groups))
                            return 0;
                    addr->nl_family = AF_NETLINK;
                    addr->nl_pid = pid;

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 12, 2006

    Logged In: YES
    user_id=21627

    There's no uploaded file! You have to check the
    checkbox labeled "Check to Upload & Attach File"
    when you upload a file. In addition, even if you
    *did* check this checkbox, a bug in SourceForge
    prevents attaching a file when *creating* an issue.

    Please try again.

    (This is a SourceForge annoyance that we can do
    nothing about. :-( )

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 14, 2006

    Logged In: YES
    user_id=21627

    Thanks for the patch. Committed as 42046.

    @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

    0 participants