summaryrefslogtreecommitdiffstats
path: root/include/libipset/args.h
blob: 93b44569b29668b2e77e3ea629a35d00e70c8769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Copyright 2017 Jozsef Kadlecsik (kadlec@netfilter.org)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef LIBIPSET_ARGS_H
#define LIBIPSET_ARGS_H

/* Keywords */
enum ipset_keywords {
	IPSET_ARG_NONE = 0,
	/* Family and aliases */
	IPSET_ARG_FAMILY,			/* family */
	IPSET_ARG_INET,				/* -4 */
	IPSET_ARG_INET6,			/* -6 */
	/* Hash types */
	IPSET_ARG_HASHSIZE,			/* hashsize */
	IPSET_ARG_MAXELEM,			/* maxelem */
	/* Ignored options: backward compatibilty */
	IPSET_ARG_PROBES,			/* probes */
	IPSET_ARG_RESIZE,			/* resize */
	IPSET_ARG_GC,				/* gc */
	IPSET_ARG_IGNORED_FROM,			/* from */
	IPSET_ARG_IGNORED_TO,			/* to */
	IPSET_ARG_IGNORED_NETWORK,		/* network */
	/* List type */
	IPSET_ARG_SIZE,				/* size */
	/* IP-type elements */
	IPSET_ARG_IPRANGE,			/* range */
	IPSET_ARG_NETMASK,			/* netmask */
	/* Port-type elements */
	IPSET_ARG_PORTRANGE,			/* range */
	/* Setname type elements */
	IPSET_ARG_BEFORE,			/* before */
	IPSET_ARG_AFTER,			/* after */
	/* Backward compatibility */
	IPSET_ARG_FROM_IP,			/* from */
	IPSET_ARG_TO_IP,			/* to */
	IPSET_ARG_NETWORK,			/* network */
	IPSET_ARG_FROM_PORT,			/* from */
	IPSET_ARG_TO_PORT,			/* to */
	/* Extra flags, options */
	IPSET_ARG_FORCEADD,			/* forceadd */
	IPSET_ARG_MARKMASK,			/* markmask */
	IPSET_ARG_NOMATCH,			/* nomatch */
	IPSET_ARG_IFACE_WILDCARD,		/* interface wildcard match */
	/* Extensions */
	IPSET_ARG_TIMEOUT,			/* timeout */
	IPSET_ARG_COUNTERS,			/* counters */
	IPSET_ARG_PACKETS,			/* packets */
	IPSET_ARG_BYTES,			/* bytes */
	IPSET_ARG_COMMENT,			/* comment */
	IPSET_ARG_ADT_COMMENT,			/* comment */
	IPSET_ARG_SKBINFO,			/* skbinfo */
	IPSET_ARG_SKBMARK,			/* skbmark */
	IPSET_ARG_SKBPRIO,			/* skbprio */
	IPSET_ARG_SKBQUEUE,			/* skbqueue */
	IPSET_ARG_BUCKETSIZE,			/* bucketsize */
	IPSET_ARG_MAX,
};

#ifdef __cplusplus
extern "C" {
#endif

extern const struct ipset_arg * ipset_keyword(enum ipset_keywords i);
extern const char * ipset_ignored_optname(unsigned int opt);
#ifdef __cplusplus
}
#endif

#endif /* LIBIPSET_ARGS_H */