summaryrefslogtreecommitdiff
path: root/sbin/pfctl/parse.y
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-10-28 12:53:12 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-10-28 12:53:12 +0000
commit7ee0a5fd0b72f35e6524c1fddc720b9b79fd0f39 (patch)
treede456b6a2cc63e25f9182b26e7ff7efde38e7c43 /sbin/pfctl/parse.y
parent65767611a11e4c87afe6427b29a7a529d23dd612 (diff)
route_host initializes the netmask to a /128 no matter what af is used so
that the load balancing code does not freak out but because of this check_netmask() is now complaining. So set the addr.type to PF_ADDR_DYNIFTL so check_netmask() is fixing up the netmask for IPv4 and stops complaining. This is a partial fix for the failing regress test 13. found with jsg, looks good henning
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r--sbin/pfctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 767fcc38819..1c5c38ba37c 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.571 2009/10/28 12:41:16 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.572 2009/10/28 12:53:11 claudio Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3699,6 +3699,7 @@ route_host : STRING {
if ($$ == NULL)
err(1, "route_host: calloc");
$$->ifname = $1;
+ $$->addr.type = PF_ADDR_DYNIFTL;
set_ipmask($$, 128);
$$->next = NULL;
$$->tail = $$;