History

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.

Michal Kubecek committed 7 years ago

Commit 12ad5f61 parent ae0be8d4 files · +25 −28Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/netfilter/ipset/ip_set.h+4−7
@@ -401,33 +401,30 @@ ip_set_get_h16(const struct nlattr *attr) · 400 unmodified lines
401401 return ntohs(nla_get_be16(attr));
402402 }
403403
404−#define ipset_nest_start(skb, attr) nla_nest_start(skb, attr)
405−#define ipset_nest_end(skb, start) nla_nest_end(skb, start)
406−
407404 static inline int nla_put_ipaddr4(struct sk_buff *skb, int type, __be32 ipaddr)
408405 {
409− struct nlattr *__nested = ipset_nest_start(skb, type);
406+ struct nlattr *__nested = nla_nest_start(skb, type);
410407 int ret;
411408
412409 if (!__nested)
413410 return -EMSGSIZE;
414411 ret = nla_put_in_addr(skb, IPSET_ATTR_IPADDR_IPV4, ipaddr);
415412 if (!ret)
416− ipset_nest_end(skb, __nested);
413+ nla_nest_end(skb, __nested);
417414 return ret;
418415 }
419416
420417 static inline int nla_put_ipaddr6(struct sk_buff *skb, int type,
421418 const struct in6_addr *ipaddrptr)
422419 {
423− struct nlattr *__nested = ipset_nest_start(skb, type);
420+ struct nlattr *__nested = nla_nest_start(skb, type);
424421 int ret;
425422
426423 if (!__nested)
427424 return -EMSGSIZE;
428425 ret = nla_put_in6_addr(skb, IPSET_ATTR_IPADDR_IPV6, ipaddrptr);
429426 if (!ret)
430− ipset_nest_end(skb, __nested);
427+ nla_nest_end(skb, __nested);
431428 return ret;
432429 }
433430

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t