summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-22 15:52:14 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-22 15:52:14 +0000
commit8f9b9390c20239d45312954ee6fe6f0054951158 (patch)
tree1909b58c1929968153aa8e73bc3e67a9481957d3
parent613331b62d434e875005e47c7ef2ad843c5eb6bc (diff)
Handle pool addresses in binat rules, ok mcbride@
-rw-r--r--sbin/pfctl/pfctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 43a7d8cb972..d3554da1a17 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.109 2002/12/18 19:40:41 dhartmei Exp $ */
+/* $OpenBSD: pfctl.c,v 1.110 2002/12/22 15:52:13 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -618,8 +618,12 @@ pfctl_show_nat(int dev, int opts)
warn("DIOCGETRULE");
return (-1);
}
+ if (pfctl_get_pool(dev, &pr.rule.rpool, nr,
+ pr.ticket, PF_BINAT) != 0)
+ return (-1);
print_binat(&pr.rule, opts & PF_OPT_VERBOSE2);
pfctl_print_rule_counters(&pr.rule, opts);
+ pfctl_clear_pool(&pr.rule.rpool);
}
return (0);
}