diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-10-24 09:09:33 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-10-24 09:09:33 +0000 |
commit | d10166eb2b6eca35a4dd5dd5ad7b73a6125da54a (patch) | |
tree | 3c66588204a22184eec0b42b41d46bcda0414744 /sbin/pfctl | |
parent | 71053e77ef9992202954b14bf527d338dfb8bf8b (diff) |
Use snot/dnot correctly in print_rdr. RDR rules with '!' used on the
destination address were printed incorrectly before (though the rules
worked correctly).
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d6af00fdfd1..ae47423cb03 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.52 2001/10/15 16:22:22 dhartmei Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.53 2001/10/24 09:09:32 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -461,7 +461,7 @@ print_rdr(struct pf_rdr *r) printf("any "); printf("to "); if (!PF_AZERO(&r->daddr, r->af) || !PF_AZERO(&r->dmask, r->af)) { - if (r->snot) + if (r->dnot) printf("! "); print_addr(&r->daddr, &r->dmask, r->af); printf(" "); |