diff options
author | Phil Sutter <phil@nwl.cc> | 2017-07-27 16:56:40 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-31 20:41:50 +0200 |
commit | 2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39 (patch) | |
tree | 73cde1e5fb89887682cdd7f221b34d424d0407f8 /include/net/netlink.h | |
parent | 6e692678d74289d6129bbd4bb20bb9fe01278faa (diff) | |
download | linux-2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39.tar.bz2 |
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.h | 1 |
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); |