summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-05-24 22:32:51 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-05-24 22:32:51 +0000
commitc3b360b3388a608999e98c2a85a4b49ab0eb152a (patch)
tree807f0b351830d3dc33e835893ab763dace9aa905 /sbin
parent16c507c50a485096a74d00d717d18407c3edce0f (diff)
forgot to apply masks to subnet addresses
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsec/ipsecadm/xf_flow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsec/ipsecadm/xf_flow.c b/sbin/ipsec/ipsecadm/xf_flow.c
index 86ea21fca85..87a512cd456 100644
--- a/sbin/ipsec/ipsecadm/xf_flow.c
+++ b/sbin/ipsec/ipsecadm/xf_flow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xf_flow.c,v 1.1 1998/05/24 13:29:10 provos Exp $ */
+/* $OpenBSD: xf_flow.c,v 1.2 1998/05/24 22:32:50 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -100,8 +100,8 @@ xf_flow(struct in_addr dst, u_int32_t spi, int proto,
ddst->sen_len = SENT_IP4_LEN;
ddst->sen_family = AF_ENCAP;
ddst->sen_type = SENT_IP4;
- ddst->sen_ip_src.s_addr = osrc.s_addr;
- ddst->sen_ip_dst.s_addr = odst.s_addr;
+ ddst->sen_ip_src.s_addr = osrc.s_addr & osmask.s_addr;
+ ddst->sen_ip_dst.s_addr = odst.s_addr & odmask.s_addr;
ddst->sen_proto = ddst->sen_sport = ddst->sen_dport = 0;
if (tproto > 0) {