diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-06-18 21:05:18 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-06-18 21:05:18 +0000 |
commit | dfe00d72bc9d56ad40eeacf17aea09b303015b63 (patch) | |
tree | 03a9b33ec2e56b694674bc9d1187197604155a0c /sbin | |
parent | 538d1f8fdee7c931daa302555b584ef8c0b6b72f (diff) |
propogate a '!' when a host resolves to multiple IP addresses
ok dhartmei@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index ca323aeda81..3f2ae8dbaee 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.102 2002/06/18 20:07:58 frantzen Exp $ */ +/* $OpenBSD: parse.y,v 1.103 2002/06/18 21:05:17 frantzen Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -557,7 +557,12 @@ host_list : xhost { $$ = $1; } } ; -xhost : '!' host { $$ = $2; $$->not = 1; } +xhost : '!' host { + struct node_host *h; + for (h = $2; h; h = h->next) + h->not = 1; + $$ = $2; + } | host { $$ = $1; } | NOROUTE { $$ = calloc(1, sizeof(struct node_host)); |