summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-10-17 11:22:43 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-10-17 11:22:43 +0000
commit48f04e25c1af2cac8eef508bf085f7df280bde2a (patch)
treedcc9ed73747fb13631ddd8ed0dc7b4d20a283310 /sbin
parent106d5e05ecd1dc4870829a9b4fe16b2755564a7d (diff)
These checks are also made in nat_consistent() and rdr_consistent().
ok dhartmei@ henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y12
1 files changed, 1 insertions, 11 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 42787b23f82..7b96cf6d360 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.170 2002/10/17 10:48:57 camield Exp $ */
+/* $OpenBSD: parse.y,v 1.171 2002/10/17 11:22:42 mcbride Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2209,11 +2209,6 @@ expand_nat(struct pf_nat *n,
else
memcpy(n->ifname, interface->ifname, sizeof(n->ifname));
- if (!n->af && n->raddr.addr_dyn != NULL) {
- yyerror("address family (inet/inet6) undefined");
- continue;
- }
-
n->ifnot = interface->not;
n->proto = proto->proto;
n->src.addr = src_host->addr;
@@ -2281,11 +2276,6 @@ expand_rdr(struct pf_rdr *r, struct node_if *interfaces,
r->af = src_host->af;
else if (!r->af && dst_host->af)
r->af = dst_host->af;
- if (!r->af && (r->saddr.addr_dyn != NULL ||
- r->daddr.addr_dyn != NULL || r->raddr.addr_dyn)) {
- yyerror("address family (inet/inet6) undefined");
- continue;
- }
if (if_indextoname(src_host->ifindex, ifname))
memcpy(r->ifname, ifname, sizeof(r->ifname));