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
Comments
This patch adds everything needed to manipulate NETLINK Nothing is done in the patch for autoconf stuff, even --- 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 |
Logged In: YES This additionnal patch give a more correct use of --- 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; |
Logged In: YES There's no uploaded file! You have to check the Please try again. (This is a SourceForge annoyance that we can do |
Logged In: YES Thanks for the patch. Committed as 42046. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: