netfilter: ipset: Use netlink callback dump args only
Instead of cb->data, use callback dump args only and introduce symbolic names instead of plain numbers at accessing the argument members. Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
d86946d2c5
commit
93302880d8
@@ -316,6 +316,16 @@ ip_set_init_counter(struct ip_set_counter *counter,
|
||||
atomic64_set(&(counter)->packets, (long long)(ext->packets));
|
||||
}
|
||||
|
||||
/* Netlink CB args */
|
||||
enum {
|
||||
IPSET_CB_NET = 0,
|
||||
IPSET_CB_DUMP,
|
||||
IPSET_CB_INDEX,
|
||||
IPSET_CB_ARG0,
|
||||
IPSET_CB_ARG1,
|
||||
IPSET_CB_ARG2,
|
||||
};
|
||||
|
||||
/* register and unregister set references */
|
||||
extern ip_set_id_t ip_set_get_byname(struct net *net,
|
||||
const char *name, struct ip_set **set);
|
||||
|
||||
Reference in New Issue
Block a user