summaryrefslogtreecommitdiffstats
path: root/include/libiptc/libiptc.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-08-27 11:12:49 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-09-11 17:31:34 +0200
commit2325c0fedf7507f94aa3bb11cc65a70d33836f8f (patch)
tree5caca3cbea25b1228e20977a7e98a72333d2d40a /include/libiptc/libiptc.h
parent160f25b09fc5695a65a8aaf485ebece85e1f853c (diff)
libiptc: combine common types
Make an xt_chainlabel type out of ipt_chainlabel and ip6t_chainlabel, and add backward-API #defines. The ABI naturally does not change either, so no soversion bump. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/libiptc/libiptc.h')
-rw-r--r--include/libiptc/libiptc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h
index 3497d6ae..ccbf6bff 100644
--- a/include/libiptc/libiptc.h
+++ b/include/libiptc/libiptc.h
@@ -10,6 +10,7 @@
# include <limits.h> /* INT_MAX in ip_tables.h */
#endif
#include <linux/netfilter_ipv4/ip_tables.h>
+#include <libiptc/xtcshared.h>
#ifdef __cplusplus
extern "C" {
@@ -17,7 +18,7 @@ extern "C" {
struct iptc_handle;
-typedef char ipt_chainlabel[32];
+#define ipt_chainlabel xt_chainlabel
#define IPTC_LABEL_ACCEPT "ACCEPT"
#define IPTC_LABEL_DROP "DROP"