diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-02-27 09:59:37 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-02-27 09:59:37 +0000 |
commit | af5ab8cfef5ec2ceee9f78df99e944f2317d3b66 (patch) | |
tree | f0560a25eb70eb896fd5fbf179ab377593abc237 /sbin/isakmpd/ipsec.c | |
parent | 2ea397a64353c4cd4c620c5b52ae4fe4796e3e1d (diff) |
ipsec.c: Merge with EOM 1.83
Only accept IPsec SAs when searching for such
sa.h: Merge with EOM 1.41
Stayalive connections as a default for now, init pf_encap_socket
pf_encap.c: Merge with EOM 1.45
Stayalive connections as a default for now, init pf_encap_socket
Diffstat (limited to 'sbin/isakmpd/ipsec.c')
-rw-r--r-- | sbin/isakmpd/ipsec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c index 7c002b1175b..6df6b3b6ce6 100644 --- a/sbin/isakmpd/ipsec.c +++ b/sbin/isakmpd/ipsec.c @@ -1,5 +1,5 @@ -/* $OpenBSD: ipsec.c,v 1.5 1999/02/26 03:43:41 niklas Exp $ */ -/* $EOM: ipsec.c,v 1.82 1999/02/25 13:35:41 niklas Exp $ */ +/* $OpenBSD: ipsec.c,v 1.6 1999/02/27 09:59:36 niklas Exp $ */ +/* $EOM: ipsec.c,v 1.83 1999/02/26 14:32:18 niklas Exp $ */ /* * Copyright (c) 1998 Niklas Hallqvist. All rights reserved. @@ -1345,6 +1345,9 @@ ipsec_sa_check (struct sa *sa, void *v_arg) int dstlen, srclen; int incoming; + if (sa->phase != 2) + return 0; + sa->transport->vtbl->get_dst (sa->transport, &dst, &dstlen); if (((struct sockaddr_in *)dst)->sin_addr.s_addr == arg->dst) incoming = 0; |