summaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
authorPatrick McHardy2008-01-23 07:10:59 +0100
committerDavid S. Miller2008-01-29 00:11:09 +0100
commit01480e1cf5e2118eba8a8968239f3242072f9563 (patch)
treec967ad4acfeb3929ff191457a45fdb47eaf94bdb /include/net/netlink.h
parent[NET_SCHED]: mark classifier ops __read_mostly (diff)
downloadkernel-qcow2-linux-01480e1cf5e2118eba8a8968239f3242072f9563.tar.gz
kernel-qcow2-linux-01480e1cf5e2118eba8a8968239f3242072f9563.tar.xz
kernel-qcow2-linux-01480e1cf5e2118eba8a8968239f3242072f9563.zip
[NETLINK]: Add nla_append()
Used to append data to a message without a header or padding. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index a5e6d0ef51dd..a5506c42f03c 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -91,6 +91,7 @@
* nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr
* nla_put(skb, type, len, data) add attribute to skb
* nla_put_nohdr(skb, len, data) add attribute w/o hdr
+ * nla_append(skb, len, data) append data to skb
*
* Attribute Construction for Basic Types:
* nla_put_u8(skb, type, value) add u8 attribute to skb
@@ -254,6 +255,8 @@ extern int nla_put(struct sk_buff *skb, int attrtype,
int attrlen, const void *data);
extern int nla_put_nohdr(struct sk_buff *skb, int attrlen,
const void *data);
+extern int nla_append(struct sk_buff *skb, int attrlen,
+ const void *data);
/**************************************************************************
* Netlink Messages