Patch #1103116: AF_NETLINK sockets basic support.

This commit is contained in:
Martin v. Löwis 2006-01-14 18:12:57 +00:00
parent 015f72b254
commit 11017b172d
8 changed files with 160 additions and 6 deletions

View file

@ -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;