1 /* Copyright 2017 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu)
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 as
5 * published by the Free Software Foundation.
7 #ifndef LIBIPSET_ARGS_H
8 #define LIBIPSET_ARGS_H
13 /* Family and aliases */
14 IPSET_ARG_FAMILY, /* family */
15 IPSET_ARG_INET, /* -4 */
16 IPSET_ARG_INET6, /* -6 */
18 IPSET_ARG_HASHSIZE, /* hashsize */
19 IPSET_ARG_MAXELEM, /* maxelem */
20 /* Ignored options: backward compatibilty */
21 IPSET_ARG_PROBES, /* probes */
22 IPSET_ARG_RESIZE, /* resize */
23 IPSET_ARG_GC, /* gc */
24 IPSET_ARG_IGNORED_FROM, /* from */
25 IPSET_ARG_IGNORED_TO, /* to */
26 IPSET_ARG_IGNORED_NETWORK, /* network */
28 IPSET_ARG_SIZE, /* size */
29 /* IP-type elements */
30 IPSET_ARG_IPRANGE, /* range */
31 IPSET_ARG_NETMASK, /* netmask */
32 /* Port-type elements */
33 IPSET_ARG_PORTRANGE, /* range */
34 /* Setname type elements */
35 IPSET_ARG_BEFORE, /* before */
36 IPSET_ARG_AFTER, /* after */
37 /* Backward compatibility */
38 IPSET_ARG_FROM_IP, /* from */
39 IPSET_ARG_TO_IP, /* to */
40 IPSET_ARG_NETWORK, /* network */
41 IPSET_ARG_FROM_PORT, /* from */
42 IPSET_ARG_TO_PORT, /* to */
43 /* Extra flags, options */
44 IPSET_ARG_FORCEADD, /* forceadd */
45 IPSET_ARG_MARKMASK, /* markmask */
46 IPSET_ARG_NOMATCH, /* nomatch */
48 IPSET_ARG_TIMEOUT, /* timeout */
49 IPSET_ARG_COUNTERS, /* counters */
50 IPSET_ARG_PACKETS, /* packets */
51 IPSET_ARG_BYTES, /* bytes */
52 IPSET_ARG_COMMENT, /* comment */
53 IPSET_ARG_ADT_COMMENT, /* comment */
54 IPSET_ARG_SKBINFO, /* skbinfo */
55 IPSET_ARG_SKBMARK, /* skbmark */
56 IPSET_ARG_SKBPRIO, /* skbprio */
57 IPSET_ARG_SKBQUEUE, /* skbqueue */
65 extern const struct ipset_arg * ipset_keyword(enum ipset_keywords i);
71 #endif /* LIBIPSET_ARGS_H */