summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-02-05 00:46:58 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-02-05 00:46:58 +0000
commit00cb19ad1a21786739f3ea157a9486cb0ef65e51 (patch)
treebba56c5e2cd2fa7ed89f87e41bc6984d3b1b1ed8 /sbin
parent36e132525fe6ed13595930c5b67d3b71136d6922 (diff)
Set the network mask to all 1's if no address is specified for a
route-to/dup-to/reply-to rule. Keeps round-robin from incrementing through the entire address space. ok dhartmei@
Diffstat (limited to 'sbin')
-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 6b6cfde85b2..3f6d9a710a7 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.306 2003/02/03 16:44:21 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.307 2003/02/05 00:46:57 mcbride Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2600,6 +2600,7 @@ route_host : STRING {
"supported", $$->ifname);
YYERROR;
}
+ set_ipmask($$, 128);
$$->next = NULL;
$$->tail = $$;
}