aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-07-27 16:56:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-31 20:41:50 +0200
commit2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39 (patch)
tree73cde1e5fb89887682cdd7f221b34d424d0407f8 /include/net/netlink.h
parentnetfilter: nf_tables: No need to check chain existence when tracing (diff)
downloadlinux-dev-2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39.tar.xz
linux-dev-2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39.zip
netlink: Introduce nla_strdup()
This is similar to strdup() for netlink string attributes. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index ef8e6c3a80a6..c8c2eb5ae55e 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -247,6 +247,7 @@ int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
int nla_policy_len(const struct nla_policy *, int);
struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
+char *nla_strdup(const struct nlattr *nla, gfp_t flags);
int nla_memcpy(void *dest, const struct nlattr *src, int count);
int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
int nla_strcmp(const struct nlattr *nla, const char *str);