summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-01-14 18:12:57 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-01-14 18:12:57 +0000
commit11017b172dc2525079fe8a6f17650b2fc048c9e6 (patch)
treeca1c91cb4a3752fdff3c277f8e85958024bc84e0 /Modules/socketmodule.h
parent015f72b254019027c73a2f13925c77d0dbcdb028 (diff)
downloadcpython-git-11017b172dc2525079fe8a6f17650b2fc048c9e6.tar.gz
Patch #1103116: AF_NETLINK sockets basic support.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 384d595154..0c5bfade08 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -32,6 +32,12 @@
# undef AF_UNIX
#endif
+#ifdef HAVE_LINUX_NETLINK_H
+# include <linux/netlink.h>
+#else
+# undef AF_NETLINK
+#endif
+
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
@@ -78,6 +84,9 @@ typedef union sock_addr {
#ifdef AF_UNIX
struct sockaddr_un un;
#endif
+#ifdef AF_NETLINK
+ struct sockaddr_nl nl;
+#endif
#ifdef ENABLE_IPV6
struct sockaddr_in6 in6;
struct sockaddr_storage storage;