summaryrefslogtreecommitdiffstats
path: root/include/libipset/types.h
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-09-01 11:10:10 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-09-01 11:10:19 +0200
commit9c0d31cc1eb0a46b1756bd11f9194ddb4b38be0e (patch)
tree7e845a9740810ddc42e87d4b4d30c360f708f975 /include/libipset/types.h
parent20a52295775126d1bd5740b6543d1ea8ea239b1b (diff)
parent5fccd38bbf4892718e58f0b006aa6724aec4f7f8 (diff)
Merge branch 'master' of git://dev.medozas.de/ipset
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'include/libipset/types.h')
-rw-r--r--include/libipset/types.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h
index d2801f1..cacce26 100644
--- a/include/libipset/types.h
+++ b/include/libipset/types.h
@@ -14,15 +14,18 @@
#include <libipset/parse.h> /* ipset_parsefn */
#include <libipset/print.h> /* ipset_printfn */
#include <libipset/linux_ip_set.h> /* IPSET_MAXNAMELEN */
-
-#define AF_INET46 255
+#include <libipset/nfproto.h> /* for NFPROTO_ */
/* Family rules:
- * - AF_UNSPEC: type is family-neutral
- * - AF_INET: type supports IPv4 only
- * - AF_INET6: type supports IPv6 only
- * - AF_INET46: type supports both IPv4 and IPv6
+ * - NFPROTO_UNSPEC: type is family-neutral
+ * - NFPROTO_IPV4: type supports IPv4 only
+ * - NFPROTO_IPV6: type supports IPv6 only
+ * Special (userspace) ipset-only extra value:
+ * - NFPROTO_IPSET_IPV46: type supports both IPv4 and IPv6
*/
+enum {
+ NFPROTO_IPSET_IPV46 = 255,
+};
/* The maximal type dimension userspace supports */
#define IPSET_DIM_UMAX 3