summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 4272202e..51127cde 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -122,7 +122,7 @@ static int non_zero(const void *ptr, size_t size)
static int print_match(const struct ipt_entry_match *e,
const struct ipt_ip *ip)
{
- struct iptables_match *match
+ struct xtables_match *match
= find_match(e->u.user.name, TRY_LOAD, NULL);
if (match) {
@@ -222,7 +222,7 @@ static void print_rule(const struct ipt_entry *e,
/* Print targinfo part */
t = ipt_get_target((struct ipt_entry *)e);
if (t->u.user.name[0]) {
- struct iptables_target *target
+ struct xtables_target *target
= find_target(t->u.user.name, TRY_LOAD);
if (!target) {
@@ -292,7 +292,7 @@ static int do_output(const char *tablename)
time_t now = time(NULL);
printf("# Generated by iptables-save v%s on %s",
- IPTABLES_VERSION, ctime(&now));
+ XTABLES_VERSION, ctime(&now));
printf("*%s\n", tablename);
/* Dump out chain names first,
@@ -355,7 +355,7 @@ main(int argc, char *argv[])
int c;
program_name = "iptables-save";
- program_version = IPTABLES_VERSION;
+ program_version = XTABLES_VERSION;
lib_dir = getenv("XTABLES_LIBDIR");
if (lib_dir == NULL) {