diff options
author | 2005-05-26 15:30:39 +0000 | |
---|---|---|
committer | 2005-05-26 15:30:39 +0000 | |
commit | c6cbb6b61eec1d2100056f9381156ba36e1197ff (patch) | |
tree | 26dede67e44654e70cdd52b3489d5e00d6725260 | |
parent | support 'log' and 'log-all' in 'nat/rdr/binat pass' rules. original patch (diff) | |
download | wireguard-openbsd-c6cbb6b61eec1d2100056f9381156ba36e1197ff.tar.xz wireguard-openbsd-c6cbb6b61eec1d2100056f9381156ba36e1197ff.zip |
use PF_LOG, PF_LOGALL instead of numeric constants
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d23429c1b8e..ef5f8e7c146 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.212 2005/05/21 21:03:58 henning Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.213 2005/05/26 15:30:39 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -714,9 +714,9 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose) printf(" in"); else if (r->direction == PF_OUT) printf(" out"); - if (r->log == 1) + if (r->log == PF_LOG) printf(" log"); - else if (r->log == 2) + else if (r->log == PF_LOGALL) printf(" log-all"); if (r->quick) printf(" quick"); |