ipset: drop ipset_nest_start() and ipset_nest_end()
After the previous commit, both ipset_nest_start() and ipset_nest_end() are just aliases for nla_nest_start() and nla_nest_end() so that there is no need to keep them. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ae0be8de9a
commit
12ad5f65f0
@@ -401,33 +401,30 @@ ip_set_get_h16(const struct nlattr *attr)
|
||||
return ntohs(nla_get_be16(attr));
|
||||
}
|
||||
|
||||
#define ipset_nest_start(skb, attr) nla_nest_start(skb, attr)
|
||||
#define ipset_nest_end(skb, start) nla_nest_end(skb, start)
|
||||
|
||||
static inline int nla_put_ipaddr4(struct sk_buff *skb, int type, __be32 ipaddr)
|
||||
{
|
||||
struct nlattr *__nested = ipset_nest_start(skb, type);
|
||||
struct nlattr *__nested = nla_nest_start(skb, type);
|
||||
int ret;
|
||||
|
||||
if (!__nested)
|
||||
return -EMSGSIZE;
|
||||
ret = nla_put_in_addr(skb, IPSET_ATTR_IPADDR_IPV4, ipaddr);
|
||||
if (!ret)
|
||||
ipset_nest_end(skb, __nested);
|
||||
nla_nest_end(skb, __nested);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline int nla_put_ipaddr6(struct sk_buff *skb, int type,
|
||||
const struct in6_addr *ipaddrptr)
|
||||
{
|
||||
struct nlattr *__nested = ipset_nest_start(skb, type);
|
||||
struct nlattr *__nested = nla_nest_start(skb, type);
|
||||
int ret;
|
||||
|
||||
if (!__nested)
|
||||
return -EMSGSIZE;
|
||||
ret = nla_put_in6_addr(skb, IPSET_ATTR_IPADDR_IPV6, ipaddrptr);
|
||||
if (!ret)
|
||||
ipset_nest_end(skb, __nested);
|
||||
nla_nest_end(skb, __nested);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user