summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgr@plip.localdomain>2008-10-20 13:02:38 +0200
committerThomas Graf <tgr@plip.localdomain>2008-10-20 13:02:38 +0200
commit2bdee95a765457fe4206b89d51974ae56e75c588 (patch)
tree91fcdf9e93b2918dd107a8894e400f4032a7fa4d /include
parentf42f195a80ffb7a5dcc355a56b8fe229692718e5 (diff)
downloadandroid_external_libnl-2bdee95a765457fe4206b89d51974ae56e75c588.tar.gz
android_external_libnl-2bdee95a765457fe4206b89d51974ae56e75c588.tar.bz2
android_external_libnl-2bdee95a765457fe4206b89d51974ae56e75c588.zip
Add socket flag NL_NO_AUTO_ACK to allow disabling auto ACKS
Diffstat (limited to 'include')
-rw-r--r--include/netlink-types.h1
-rw-r--r--include/netlink/socket.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink-types.h b/include/netlink-types.h
index cddace9..263e5d7 100644
--- a/include/netlink-types.h
+++ b/include/netlink-types.h
@@ -22,6 +22,7 @@
#define NL_SOCK_PASSCRED (1<<1)
#define NL_OWN_PORT (1<<2)
#define NL_MSG_PEEK (1<<3)
+#define NL_NO_AUTO_ACK (1<<4)
#define NL_MSG_CRED_PRESENT 1
diff --git a/include/netlink/socket.h b/include/netlink/socket.h
index 68477e4..c10bc2a 100644
--- a/include/netlink/socket.h
+++ b/include/netlink/socket.h
@@ -56,6 +56,8 @@ extern int nl_socket_recv_pktinfo(struct nl_sock *, int);
extern void nl_disable_sequence_check(struct nl_sock *);
extern unsigned int nl_socket_use_seq(struct nl_sock *);
+extern void nl_socket_disable_auto_ack(struct nl_sock *);
+extern void nl_socket_enable_auto_ack(struct nl_sock *);
extern int nl_socket_get_fd(struct nl_sock *);
extern int nl_socket_set_nonblocking(struct nl_sock *);