diff options
author | 2002-06-18 21:05:17 +0000 | |
---|---|---|
committer | 2002-06-18 21:05:17 +0000 | |
commit | 2cbadb893c967b1e63216a782b1cb6b7fc2e761a (patch) | |
tree | cc8e06501c5936746bb2e6d6ad13776d9c872cb8 | |
parent | actually, wrong type for printing of sise_t (diff) | |
download | wireguard-openbsd-2cbadb893c967b1e63216a782b1cb6b7fc2e761a.tar.xz wireguard-openbsd-2cbadb893c967b1e63216a782b1cb6b7fc2e761a.zip |
propogate a '!' when a host resolves to multiple IP addresses
ok dhartmei@
-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)); |