]> granicus.if.org Git - ipset/blob - include/libipset/args.h
Userspace revision handling is reworked
[ipset] / include / libipset / args.h
1 /* Copyright 2017 Jozsef Kadlecsik (kadlec@blackhole.kfki.hu)
2  *
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.
6  */
7 #ifndef LIBIPSET_ARGS_H
8 #define LIBIPSET_ARGS_H
9
10 /* Keywords */
11 enum ipset_keywords {
12         IPSET_ARG_NONE = 0,
13         /* Family and aliases */
14         IPSET_ARG_FAMILY,                       /* family */
15         IPSET_ARG_INET,                         /* -4 */
16         IPSET_ARG_INET6,                        /* -6 */
17         /* Hash types */
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 */
27         /* List type */
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 */
47         /* Extensions */
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 */
58         IPSET_ARG_MAX,
59 };
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 extern const struct ipset_arg * ipset_keyword(enum ipset_keywords i);
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif /* LIBIPSET_ARGS_H */