diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-15 16:57:00 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-15 16:57:00 +0000 |
commit | 8e3568b418fc5e9d651a207d17db7d5389084cbc (patch) | |
tree | aa79ac413fd2c6a15f3a788ff0288e6782f18974 /sbin/pfctl | |
parent | 487fd3b8f0e28acf5c9c5d946bc438746612f818 (diff) |
set a netmask in the dynaddr case
noticed by <han@mijncomputer.nl>
ok pb@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 54aee9c8e3e..56a1210dc8d 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.149 2002/09/14 17:50:17 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.150 2002/09/15 16:56:59 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -751,6 +751,7 @@ address : '(' STRING ')' { if ($$ == NULL) err(1, "address: calloc"); $$->af = 0; + ipmask(&$$->mask, 128); $$->addr.addr_dyn = (struct pf_addr_dyn *)1; strncpy($$->addr.addr.pfa.ifname, $2, sizeof($$->addr.addr.pfa.ifname)); |