[Patches] [ python-Patches-1103116 ] AF_NETLINK sockets basic
support
SourceForge.net
noreply at sourceforge.net
Sun Jan 16 01:28:36 CET 2005
Patches item #1103116, was opened at 2005-01-15 23:23
Message generated for change (Comment added) made by drphil
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1103116&group_id=5470
Category: Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Philippe Biondi (drphil)
Assigned to: Nobody/Anonymous (nobody)
Summary: AF_NETLINK sockets basic support
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Philippe Biondi (drphil)
Date: 2005-01-16 01:28
Message:
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;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1103116&group_id=5470
More information about the Patches
mailing list