summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-10-29 15:35:09 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-10-29 15:35:09 +0000
commit7e094fb2b7a8fcc271b7804bce81292d8993240d (patch)
tree5368d1ae63406a03585c2ab30bc153c4eb560151 /sys/net
parent06381ac8769c4ba1fcf2dfadd4ce6e389f5ce369 (diff)
fix binat for incoming connections when a netblock (not just a single
address) is used for source in the binat rule. closes PR 3535, reported by Karl O.Pinc. ok henning@, cedric@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 339d314b1dd..9ad91c51ce9 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.395 2003/10/25 20:27:07 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.396 2003/10/29 15:35:08 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1927,7 +1927,7 @@ pf_get_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction,
else
PF_POOLMASK(naddr,
&r->src.addr.v.a.addr,
- &r->src.addr.v.a.mask, saddr,
+ &r->src.addr.v.a.mask, daddr,
pd->af);
break;
}