summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-02-12 13:03:55 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-02-12 13:03:55 +0000
commit6a7dec21e25a8d9661dd9bb9bf0073634f69960e (patch)
treed236fdae864ed9fcb597a1a458ab78be73de49fd /sbin/pfctl
parentb0474e5b1be0755b77ee8026cccba7b6417cabed (diff)
KNF after ryan
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 66aa63fe0e5..522b3f8d467 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.314 2003/02/12 12:48:40 mcbride Exp $ */
+/* $OpenBSD: parse.y,v 1.315 2003/02/12 13:03:54 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2328,7 +2328,7 @@ natrule : nataction interface af proto fromto redirpool pooltype staticport
switch (r.action) {
case PF_RDR:
- if (!$6->rport.b && $6->rport.t &&
+ if (!$6->rport.b && $6->rport.t &&
$5.dst.port != NULL) {
r.rpool.proxy_port[1] =
ntohs($6->rport.a) +
@@ -2812,15 +2812,15 @@ rdr_consistent(struct pf_rule *r)
struct pf_pooladdr *pa;
if (r->proto != IPPROTO_TCP && r->proto != IPPROTO_UDP) {
- if (r->src.port_op) {
+ if (r->src.port_op) {
yyerror("src port only applies to tcp/udp");
problems++;
}
- if (r->dst.port_op) {
+ if (r->dst.port_op) {
yyerror("dst port only applies to tcp/udp");
problems++;
}
- if (r->rpool.proxy_port[0]) {
+ if (r->rpool.proxy_port[0]) {
yyerror("rpool port only applies to tcp/udp");
problems++;
}