From 00cb19ad1a21786739f3ea157a9486cb0ef65e51 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Wed, 5 Feb 2003 00:46:58 +0000 Subject: 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@ --- sbin/pfctl/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin') 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 = $$; } -- cgit v1.2.3