]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - include/linux/netfilter/ipset/ip_set.h
netfilter: ipset: Limit the maximal range of consecutive elements to add/delete
[mirror_ubuntu-hirsute-kernel.git] / include / linux / netfilter / ipset / ip_set.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
a7b4f989
JK
2/* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu>
3 * Patrick Schaaf <bof@bof.de>
4 * Martin Josefsson <gandalf@wlug.westbo.se>
fe03d474 5 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org>
a7b4f989 6 */
a8201414
DH
7#ifndef _IP_SET_H
8#define _IP_SET_H
a7b4f989 9
ae8ded1c
JE
10#include <linux/ip.h>
11#include <linux/ipv6.h>
12#include <linux/netlink.h>
13#include <linux/netfilter.h>
14#include <linux/netfilter/x_tables.h>
10111a6e 15#include <linux/stringify.h>
ae8ded1c
JE
16#include <linux/vmalloc.h>
17#include <net/netlink.h>
a8201414 18#include <uapi/linux/netfilter/ipset/ip_set.h>
ae8ded1c 19
10111a6e
JK
20#define _IP_SET_MODULE_DESC(a, b, c) \
21 MODULE_DESCRIPTION(a " type of IP sets, revisions " b "-" c)
22#define IP_SET_MODULE_DESC(a, b, c) \
23 _IP_SET_MODULE_DESC(a, __stringify(b), __stringify(c))
24
a7b4f989
JK
25/* Set features */
26enum ip_set_feature {
27 IPSET_TYPE_IP_FLAG = 0,
28 IPSET_TYPE_IP = (1 << IPSET_TYPE_IP_FLAG),
29 IPSET_TYPE_PORT_FLAG = 1,
30 IPSET_TYPE_PORT = (1 << IPSET_TYPE_PORT_FLAG),
31 IPSET_TYPE_MAC_FLAG = 2,
32 IPSET_TYPE_MAC = (1 << IPSET_TYPE_MAC_FLAG),
33 IPSET_TYPE_IP2_FLAG = 3,
34 IPSET_TYPE_IP2 = (1 << IPSET_TYPE_IP2_FLAG),
35 IPSET_TYPE_NAME_FLAG = 4,
36 IPSET_TYPE_NAME = (1 << IPSET_TYPE_NAME_FLAG),
e385357a
JK
37 IPSET_TYPE_IFACE_FLAG = 5,
38 IPSET_TYPE_IFACE = (1 << IPSET_TYPE_IFACE_FLAG),
3b02b56c
VD
39 IPSET_TYPE_MARK_FLAG = 6,
40 IPSET_TYPE_MARK = (1 << IPSET_TYPE_MARK_FLAG),
41 IPSET_TYPE_NOMATCH_FLAG = 7,
3e0304a5 42 IPSET_TYPE_NOMATCH = (1 << IPSET_TYPE_NOMATCH_FLAG),
a7b4f989
JK
43 /* Strictly speaking not a feature, but a flag for dumping:
44 * this settype must be dumped last */
3b02b56c 45 IPSET_DUMP_LAST_FLAG = 8,
a7b4f989
JK
46 IPSET_DUMP_LAST = (1 << IPSET_DUMP_LAST_FLAG),
47};
48
075e64c0
JK
49/* Set extensions */
50enum ip_set_extension {
40cd63bf 51 IPSET_EXT_BIT_TIMEOUT = 0,
075e64c0 52 IPSET_EXT_TIMEOUT = (1 << IPSET_EXT_BIT_TIMEOUT),
40cd63bf 53 IPSET_EXT_BIT_COUNTER = 1,
34d666d4 54 IPSET_EXT_COUNTER = (1 << IPSET_EXT_BIT_COUNTER),
68b63f08
OS
55 IPSET_EXT_BIT_COMMENT = 2,
56 IPSET_EXT_COMMENT = (1 << IPSET_EXT_BIT_COMMENT),
0e9871e3
AD
57 IPSET_EXT_BIT_SKBINFO = 3,
58 IPSET_EXT_SKBINFO = (1 << IPSET_EXT_BIT_SKBINFO),
40cd63bf
JK
59 /* Mark set with an extension which needs to call destroy */
60 IPSET_EXT_BIT_DESTROY = 7,
61 IPSET_EXT_DESTROY = (1 << IPSET_EXT_BIT_DESTROY),
075e64c0
JK
62};
63
075e64c0 64#define SET_WITH_TIMEOUT(s) ((s)->extensions & IPSET_EXT_TIMEOUT)
34d666d4 65#define SET_WITH_COUNTER(s) ((s)->extensions & IPSET_EXT_COUNTER)
68b63f08 66#define SET_WITH_COMMENT(s) ((s)->extensions & IPSET_EXT_COMMENT)
0e9871e3 67#define SET_WITH_SKBINFO(s) ((s)->extensions & IPSET_EXT_SKBINFO)
07cf8f5a 68#define SET_WITH_FORCEADD(s) ((s)->flags & IPSET_CREATE_FLAG_FORCEADD)
075e64c0 69
f925f705
JK
70/* Extension id, in size order */
71enum ip_set_ext_id {
72 IPSET_EXT_ID_COUNTER = 0,
73 IPSET_EXT_ID_TIMEOUT,
0e9871e3 74 IPSET_EXT_ID_SKBINFO,
68b63f08 75 IPSET_EXT_ID_COMMENT,
f925f705
JK
76 IPSET_EXT_ID_MAX,
77};
78
9e41f26a
JK
79struct ip_set;
80
03c8b234
JK
81/* Extension type */
82struct ip_set_ext_type {
40cd63bf 83 /* Destroy extension private data (can be NULL) */
9e41f26a 84 void (*destroy)(struct ip_set *set, void *ext);
03c8b234
JK
85 enum ip_set_extension type;
86 enum ipset_cadt_flags flag;
87 /* Size and minimal alignment */
88 u8 len;
89 u8 align;
90};
91
92extern const struct ip_set_ext_type ip_set_extensions[];
93
ca134ce8
JK
94struct ip_set_counter {
95 atomic64_t bytes;
96 atomic64_t packets;
97};
98
b57b2d1f
JK
99struct ip_set_comment_rcu {
100 struct rcu_head rcu;
6daf1414 101 char str[];
b57b2d1f
JK
102};
103
68b63f08 104struct ip_set_comment {
b57b2d1f 105 struct ip_set_comment_rcu __rcu *c;
68b63f08 106};
40cd63bf 107
0e9871e3
AD
108struct ip_set_skbinfo {
109 u32 skbmark;
110 u32 skbmarkmask;
111 u32 skbprio;
112 u16 skbqueue;
bec810d9
JK
113 u16 __pad;
114};
115
116struct ip_set_ext {
117 struct ip_set_skbinfo skbinfo;
118 u64 packets;
119 u64 bytes;
120 char *comment;
121 u32 timeout;
4750005a
JK
122 u8 packets_op;
123 u8 bytes_op;
f66ee041 124 bool target;
0e9871e3
AD
125};
126
68b63f08 127struct ip_set;
40cd63bf 128
ca134ce8 129#define ext_timeout(e, s) \
275e2bc0 130((unsigned long *)(((void *)(e)) + (s)->offset[IPSET_EXT_ID_TIMEOUT]))
ca134ce8 131#define ext_counter(e, s) \
275e2bc0 132((struct ip_set_counter *)(((void *)(e)) + (s)->offset[IPSET_EXT_ID_COUNTER]))
68b63f08 133#define ext_comment(e, s) \
275e2bc0 134((struct ip_set_comment *)(((void *)(e)) + (s)->offset[IPSET_EXT_ID_COMMENT]))
0e9871e3 135#define ext_skbinfo(e, s) \
275e2bc0 136((struct ip_set_skbinfo *)(((void *)(e)) + (s)->offset[IPSET_EXT_ID_SKBINFO]))
ca134ce8 137
5416219e 138typedef int (*ipset_adtfn)(struct ip_set *set, void *value,
075e64c0 139 const struct ip_set_ext *ext,
6e01781d 140 struct ip_set_ext *mext, u32 cmdflags);
a7b4f989 141
ac8cc925
JK
142/* Kernel API function options */
143struct ip_set_adt_opt {
144 u8 family; /* Actual protocol family */
145 u8 dim; /* Dimension of match/target */
146 u8 flags; /* Direction and negation flags */
147 u32 cmdflags; /* Command-like flags */
075e64c0 148 struct ip_set_ext ext; /* Extensions */
ac8cc925
JK
149};
150
a7b4f989
JK
151/* Set type, variant-specific part */
152struct ip_set_type_variant {
153 /* Kernelspace: test/add/del entries
154 * returns negative error code,
155 * zero for no match/success to add/delete
156 * positive for matching element */
3ace95c0 157 int (*kadt)(struct ip_set *set, const struct sk_buff *skb,
b66554cf 158 const struct xt_action_param *par,
075e64c0 159 enum ipset_adt adt, struct ip_set_adt_opt *opt);
a7b4f989
JK
160
161 /* Userspace: test/add/del entries
162 * returns negative error code,
163 * zero for no match/success to add/delete
164 * positive for matching element */
165 int (*uadt)(struct ip_set *set, struct nlattr *tb[],
3d14b171 166 enum ipset_adt adt, u32 *lineno, u32 flags, bool retried);
a7b4f989
JK
167
168 /* Low level add/del/test functions */
169 ipset_adtfn adt[IPSET_ADT_MAX];
170
171 /* When adding entries and set is full, try to resize the set */
172 int (*resize)(struct ip_set *set, bool retried);
173 /* Destroy the set */
174 void (*destroy)(struct ip_set *set);
175 /* Flush the elements */
176 void (*flush)(struct ip_set *set);
177 /* Expire entries before listing */
178 void (*expire)(struct ip_set *set);
179 /* List set header data */
180 int (*head)(struct ip_set *set, struct sk_buff *skb);
181 /* List elements */
182 int (*list)(const struct ip_set *set, struct sk_buff *skb,
183 struct netlink_callback *cb);
c4c99783
JK
184 /* Keep listing private when resizing runs parallel */
185 void (*uref)(struct ip_set *set, struct netlink_callback *cb,
186 bool start);
a7b4f989
JK
187
188 /* Return true if "b" set is the same as "a"
189 * according to the create set parameters */
190 bool (*same_set)(const struct ip_set *a, const struct ip_set *b);
f66ee041
JK
191 /* Region-locking is used */
192 bool region_lock;
193};
194
195struct ip_set_region {
196 spinlock_t lock; /* Region lock */
197 size_t ext_size; /* Size of the dynamic extensions */
198 u32 elements; /* Number of elements vs timeout */
a7b4f989
JK
199};
200
aa67f109
JK
201/* Max range where every element is added/deleted in one step */
202#define IPSET_MAX_RANGE (1<<20)
203
ccf0a4b7
JK
204/* The max revision number supported by any set type + 1 */
205#define IPSET_REVISION_MAX 9
206
a7b4f989
JK
207/* The core set type structure */
208struct ip_set_type {
209 struct list_head list;
210
211 /* Typename */
212 char name[IPSET_MAXNAMELEN];
213 /* Protocol version */
214 u8 protocol;
a7b4f989
JK
215 /* Set type dimension */
216 u8 dimension;
c15f1c83
JE
217 /*
218 * Supported family: may be NFPROTO_UNSPEC for both
219 * NFPROTO_IPV4/NFPROTO_IPV6.
220 */
a7b4f989 221 u8 family;
f1e00b39
JK
222 /* Type revisions */
223 u8 revision_min, revision_max;
ccf0a4b7
JK
224 /* Revision-specific supported (create) flags */
225 u8 create_flags[IPSET_REVISION_MAX+1];
3b02b56c
VD
226 /* Set features to control swapping */
227 u16 features;
a7b4f989
JK
228
229 /* Create set */
1785e8f4
VL
230 int (*create)(struct net *net, struct ip_set *set,
231 struct nlattr *tb[], u32 flags);
a7b4f989
JK
232
233 /* Attribute policies */
234 const struct nla_policy create_policy[IPSET_ATTR_CREATE_MAX + 1];
235 const struct nla_policy adt_policy[IPSET_ATTR_ADT_MAX + 1];
236
237 /* Set this to THIS_MODULE if you are a module, otherwise NULL */
238 struct module *me;
239};
240
241/* register and unregister set type */
242extern int ip_set_type_register(struct ip_set_type *set_type);
243extern void ip_set_type_unregister(struct ip_set_type *set_type);
244
245/* A generic IP set */
246struct ip_set {
247 /* The name of the set */
248 char name[IPSET_MAXNAMELEN];
249 /* Lock protecting the set data */
b57b2d1f 250 spinlock_t lock;
a7b4f989 251 /* References to the set */
2f9f28b2 252 u32 ref;
596cf3fe
VP
253 /* References to the set for netlink events like dump,
254 * ref can be swapped out by ip_set_swap
255 */
256 u32 ref_netlink;
a7b4f989
JK
257 /* The core set type */
258 struct ip_set_type *type;
259 /* The type variant doing the real job */
260 const struct ip_set_type_variant *variant;
261 /* The actual INET family of the set */
262 u8 family;
f1e00b39
JK
263 /* The type revision */
264 u8 revision;
075e64c0
JK
265 /* Extensions */
266 u8 extensions;
af284ece
JK
267 /* Create flags */
268 u8 flags;
ca134ce8
JK
269 /* Default timeout value, if enabled */
270 u32 timeout;
702b71e7
JK
271 /* Number of elements (vs timeout) */
272 u32 elements;
9e41f26a
JK
273 /* Size of the dynamic extensions (vs timeout) */
274 size_t ext_size;
ca134ce8
JK
275 /* Element data size */
276 size_t dsize;
277 /* Offsets to extensions in elements */
278 size_t offset[IPSET_EXT_ID_MAX];
a7b4f989
JK
279 /* The type specific data */
280 void *data;
281};
282
68b63f08
OS
283static inline void
284ip_set_ext_destroy(struct ip_set *set, void *data)
285{
286 /* Check that the extension is enabled for the set and
287 * call it's destroy function for its extension part in data.
288 */
017f77c0
JS
289 if (SET_WITH_COMMENT(set)) {
290 struct ip_set_comment *c = ext_comment(data, set);
291
292 ip_set_extensions[IPSET_EXT_ID_COMMENT].destroy(set, c);
293 }
68b63f08
OS
294}
295
85639185 296int ip_set_put_flags(struct sk_buff *skb, struct ip_set *set);
68b63f08 297
93302880
JK
298/* Netlink CB args */
299enum {
c4c99783 300 IPSET_CB_NET = 0, /* net namespace */
23c42a40 301 IPSET_CB_PROTO, /* ipset protocol */
c4c99783
JK
302 IPSET_CB_DUMP, /* dump single set/all sets */
303 IPSET_CB_INDEX, /* set index */
304 IPSET_CB_PRIVATE, /* set private data */
305 IPSET_CB_ARG0, /* type specific */
93302880
JK
306};
307
a7b4f989 308/* register and unregister set references */
1785e8f4
VL
309extern ip_set_id_t ip_set_get_byname(struct net *net,
310 const char *name, struct ip_set **set);
311extern void ip_set_put_byindex(struct net *net, ip_set_id_t index);
439cd39e 312extern void ip_set_name_byindex(struct net *net, ip_set_id_t index, char *name);
1785e8f4
VL
313extern ip_set_id_t ip_set_nfnl_get_byindex(struct net *net, ip_set_id_t index);
314extern void ip_set_nfnl_put(struct net *net, ip_set_id_t index);
a7b4f989
JK
315
316/* API for iptables set match, and SET target */
ac8cc925 317
a7b4f989 318extern int ip_set_add(ip_set_id_t id, const struct sk_buff *skb,
b66554cf 319 const struct xt_action_param *par,
075e64c0 320 struct ip_set_adt_opt *opt);
a7b4f989 321extern int ip_set_del(ip_set_id_t id, const struct sk_buff *skb,
b66554cf 322 const struct xt_action_param *par,
075e64c0 323 struct ip_set_adt_opt *opt);
a7b4f989 324extern int ip_set_test(ip_set_id_t id, const struct sk_buff *skb,
b66554cf 325 const struct xt_action_param *par,
075e64c0 326 struct ip_set_adt_opt *opt);
a7b4f989
JK
327
328/* Utility functions */
15b4d93f 329extern void *ip_set_alloc(size_t size);
a7b4f989
JK
330extern void ip_set_free(void *members);
331extern int ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr);
332extern int ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr);
03c8b234 333extern size_t ip_set_elem_len(struct ip_set *set, struct nlattr *tb[],
95ad1f4a 334 size_t len, size_t align);
075e64c0
JK
335extern int ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[],
336 struct ip_set_ext *ext);
837a90ea
JK
337extern int ip_set_put_extensions(struct sk_buff *skb, const struct ip_set *set,
338 const void *e, bool active);
4750005a
JK
339extern bool ip_set_match_extensions(struct ip_set *set,
340 const struct ip_set_ext *ext,
341 struct ip_set_ext *mext,
342 u32 flags, void *data);
a7b4f989
JK
343
344static inline int
345ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr)
346{
347 __be32 ip;
348 int ret = ip_set_get_ipaddr4(nla, &ip);
15b4d93f 349
a7b4f989
JK
350 if (ret)
351 return ret;
352 *ipaddr = ntohl(ip);
353 return 0;
354}
355
356/* Ignore IPSET_ERR_EXIST errors if asked to do so? */
357static inline bool
358ip_set_eexist(int ret, u32 flags)
359{
360 return ret == -IPSET_ERR_EXIST && (flags & IPSET_FLAG_EXIST);
361}
362
43c56e59
JK
363/* Match elements marked with nomatch */
364static inline bool
0f1799ba 365ip_set_enomatch(int ret, u32 flags, enum ipset_adt adt, struct ip_set *set)
43c56e59
JK
366{
367 return adt == IPSET_TEST &&
0f1799ba
JK
368 (set->type->features & IPSET_TYPE_NOMATCH) &&
369 ((flags >> 16) & IPSET_FLAG_NOMATCH) &&
370 (ret > 0 || ret == -ENOTEMPTY);
43c56e59
JK
371}
372
a7b4f989
JK
373/* Check the NLA_F_NET_BYTEORDER flag */
374static inline bool
375ip_set_attr_netorder(struct nlattr *tb[], int type)
376{
377 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER);
378}
379
380static inline bool
381ip_set_optattr_netorder(struct nlattr *tb[], int type)
382{
383 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER);
384}
385
386/* Useful converters */
387static inline u32
388ip_set_get_h32(const struct nlattr *attr)
389{
390 return ntohl(nla_get_be32(attr));
391}
392
393static inline u16
394ip_set_get_h16(const struct nlattr *attr)
395{
396 return ntohs(nla_get_be16(attr));
397}
398
7cf7899d
DM
399static inline int nla_put_ipaddr4(struct sk_buff *skb, int type, __be32 ipaddr)
400{
12ad5f65 401 struct nlattr *__nested = nla_nest_start(skb, type);
7cf7899d
DM
402 int ret;
403
404 if (!__nested)
405 return -EMSGSIZE;
930345ea 406 ret = nla_put_in_addr(skb, IPSET_ATTR_IPADDR_IPV4, ipaddr);
7cf7899d 407 if (!ret)
12ad5f65 408 nla_nest_end(skb, __nested);
7cf7899d
DM
409 return ret;
410}
411
3ace95c0
JK
412static inline int nla_put_ipaddr6(struct sk_buff *skb, int type,
413 const struct in6_addr *ipaddrptr)
7cf7899d 414{
12ad5f65 415 struct nlattr *__nested = nla_nest_start(skb, type);
7cf7899d
DM
416 int ret;
417
418 if (!__nested)
419 return -EMSGSIZE;
930345ea 420 ret = nla_put_in6_addr(skb, IPSET_ATTR_IPADDR_IPV6, ipaddrptr);
7cf7899d 421 if (!ret)
12ad5f65 422 nla_nest_end(skb, __nested);
7cf7899d
DM
423 return ret;
424}
a7b4f989
JK
425
426/* Get address from skbuff */
427static inline __be32
428ip4addr(const struct sk_buff *skb, bool src)
429{
430 return src ? ip_hdr(skb)->saddr : ip_hdr(skb)->daddr;
431}
432
433static inline void
434ip4addrptr(const struct sk_buff *skb, bool src, __be32 *addr)
435{
436 *addr = src ? ip_hdr(skb)->saddr : ip_hdr(skb)->daddr;
437}
438
439static inline void
440ip6addrptr(const struct sk_buff *skb, bool src, struct in6_addr *addr)
441{
442 memcpy(addr, src ? &ipv6_hdr(skb)->saddr : &ipv6_hdr(skb)->daddr,
443 sizeof(*addr));
444}
445
bd96b4c7
JS
446/* How often should the gc be run by default */
447#define IPSET_GC_TIME (3 * 60)
448
449/* Timeout period depending on the timeout value of the given set */
450#define IPSET_GC_PERIOD(timeout) \
451 ((timeout/3) ? min_t(u32, (timeout)/3, IPSET_GC_TIME) : 1)
452
453/* Entry is set with no timeout value */
454#define IPSET_ELEM_PERMANENT 0
455
456/* Set is defined with timeout support: timeout value may be 0 */
457#define IPSET_NO_TIMEOUT UINT_MAX
458
459/* Max timeout value, see msecs_to_jiffies() in jiffies.h */
460#define IPSET_MAX_TIMEOUT (UINT_MAX >> 1)/MSEC_PER_SEC
461
462#define ip_set_adt_opt_timeout(opt, set) \
463((opt)->ext.timeout != IPSET_NO_TIMEOUT ? (opt)->ext.timeout : (set)->timeout)
464
465static inline unsigned int
466ip_set_timeout_uget(struct nlattr *tb)
467{
468 unsigned int timeout = ip_set_get_h32(tb);
469
470 /* Normalize to fit into jiffies */
471 if (timeout > IPSET_MAX_TIMEOUT)
472 timeout = IPSET_MAX_TIMEOUT;
473
474 return timeout;
475}
476
477static inline bool
478ip_set_timeout_expired(const unsigned long *t)
479{
480 return *t != IPSET_ELEM_PERMANENT && time_is_before_jiffies(*t);
481}
482
483static inline void
484ip_set_timeout_set(unsigned long *timeout, u32 value)
485{
486 unsigned long t;
487
488 if (!value) {
489 *timeout = IPSET_ELEM_PERMANENT;
490 return;
491 }
492
493 t = msecs_to_jiffies(value * MSEC_PER_SEC) + jiffies;
494 if (t == IPSET_ELEM_PERMANENT)
495 /* Bingo! :-) */
496 t--;
497 *timeout = t;
498}
499
94177f6e
JS
500void ip_set_init_comment(struct ip_set *set, struct ip_set_comment *comment,
501 const struct ip_set_ext *ext);
bd96b4c7 502
bd96b4c7
JS
503static inline void
504ip_set_init_counter(struct ip_set_counter *counter,
505 const struct ip_set_ext *ext)
506{
507 if (ext->bytes != ULLONG_MAX)
508 atomic64_set(&(counter)->bytes, (long long)(ext->bytes));
509 if (ext->packets != ULLONG_MAX)
510 atomic64_set(&(counter)->packets, (long long)(ext->packets));
511}
512
bd96b4c7
JS
513static inline void
514ip_set_init_skbinfo(struct ip_set_skbinfo *skbinfo,
515 const struct ip_set_ext *ext)
516{
517 *skbinfo = ext->skbinfo;
518}
075e64c0 519
ca134ce8 520#define IP_SET_INIT_KEXT(skb, opt, set) \
f66ee041 521 { .bytes = (skb)->len, .packets = 1, .target = true,\
ca134ce8 522 .timeout = ip_set_adt_opt_timeout(opt, set) }
075e64c0 523
ca134ce8 524#define IP_SET_INIT_UEXT(set) \
34d666d4 525 { .bytes = ULLONG_MAX, .packets = ULLONG_MAX, \
ca134ce8 526 .timeout = (set)->timeout }
075e64c0 527
35b8dcf8
JK
528#define IPSET_CONCAT(a, b) a##b
529#define IPSET_TOKEN(a, b) IPSET_CONCAT(a, b)
530
a7b4f989 531#endif /*_IP_SET_H */