diff options
| author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-10-18 05:41:55 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-22 04:13:59 -0400 |
| commit | 93302880d8a3e5dc6b7da3f9825beb839152c940 (patch) | |
| tree | 695d00aceb4e46a58a915b3f2afe2c312019f125 /include/linux | |
| parent | d86946d2c5b4e519ffe435c2deeb2c9436ceb04f (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h index 7967516adc0d..c7174b816674 100644 --- a/include/linux/netfilter/ipset/ip_set.h +++ b/include/linux/netfilter/ipset/ip_set.h | |||
| @@ -316,6 +316,16 @@ ip_set_init_counter(struct ip_set_counter *counter, | |||
| 316 | atomic64_set(&(counter)->packets, (long long)(ext->packets)); | 316 | atomic64_set(&(counter)->packets, (long long)(ext->packets)); |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | /* Netlink CB args */ | ||
| 320 | enum { | ||
| 321 | IPSET_CB_NET = 0, | ||
| 322 | IPSET_CB_DUMP, | ||
| 323 | IPSET_CB_INDEX, | ||
| 324 | IPSET_CB_ARG0, | ||
| 325 | IPSET_CB_ARG1, | ||
| 326 | IPSET_CB_ARG2, | ||
| 327 | }; | ||
| 328 | |||
| 319 | /* register and unregister set references */ | 329 | /* register and unregister set references */ |
| 320 | extern ip_set_id_t ip_set_get_byname(struct net *net, | 330 | extern ip_set_id_t ip_set_get_byname(struct net *net, |
| 321 | const char *name, struct ip_set **set); | 331 | const char *name, struct ip_set **set); |
