summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarl Hiramoto <karl@hiramoto.org>2010-02-24 21:29:13 +0100
committerThomas Graf <tgraf@suug.ch>2010-03-10 16:01:46 +0100
commit27c505eb89f7a689416f822e26c0ccea0b351ba3 (patch)
tree428ce3353b908319b64a4bdd1ddb205190d2f9f5 /include
parent8808743839b0f459394ecd00cb0f7c1896c0ab7a (diff)
downloadandroid_external_libnl-27c505eb89f7a689416f822e26c0ccea0b351ba3.tar.gz
android_external_libnl-27c505eb89f7a689416f822e26c0ccea0b351ba3.tar.bz2
android_external_libnl-27c505eb89f7a689416f822e26c0ccea0b351ba3.zip
new feature nl_send_iovec(), nl_auto_complete() and code refactoring.
Create new function nl_send_iovec() to be used to send multiple 'struct iovec' through the netlink socket. This will be used for NF_QUEUE, to send packet payload of a modified packet. Refactor nl_send() to use nl_send_iovec() sending a single struct iovec. Create new function nl_auto_complete() by refactoring nl_send_auto_complete(), so other functions that call nl_send may also use nl_auto_complete() Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/netlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink/netlink.h b/include/netlink/netlink.h
index 689b755..34eb773 100644
--- a/include/netlink/netlink.h
+++ b/include/netlink/netlink.h
@@ -50,6 +50,10 @@ extern int nl_sendto(struct nl_sock *, void *, size_t);
extern int nl_sendmsg(struct nl_sock *, struct nl_msg *,
struct msghdr *);
extern int nl_send(struct nl_sock *, struct nl_msg *);
+extern int nl_send_iovec(struct nl_sock *, struct nl_msg *,
+ const struct iovec *, unsigned);
+extern void nl_auto_complete(struct nl_sock *,
+ struct nl_msg *);
extern int nl_send_auto_complete(struct nl_sock *,
struct nl_msg *);
extern int nl_send_simple(struct nl_sock *, int, int,