diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-10-03 02:08:42 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-10-03 02:08:42 +0000 |
commit | fa2943a486b04b16f9acde66acab635e303b8c99 (patch) | |
tree | 3b6bf6c601195617fe0186ceec1f6a5bae4bb09c /sys/netinet/ip_ipsp.c | |
parent | 23c1889c495e74261ab1b06638b57444bc0871c3 (diff) |
If the TDB doesn't have an attached src/dst ID, it can be used for any
type of traffic.
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 22f35e55247..315d058671d 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.142 2001/09/05 19:22:23 deraadt Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.143 2001/10/03 02:08:41 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr), @@ -330,8 +330,7 @@ gettdbbyaddr(union sockaddr_union *dst, struct ipsec_policy *ipo, tdbp->tdb_srcid)) continue; /* Otherwise, this is fine. */ - } else if (ipo->ipo_srcid != NULL) - continue; + } if (tdbp->tdb_dstid != NULL) { if (ipo->ipo_dstid != NULL && @@ -339,8 +338,7 @@ gettdbbyaddr(union sockaddr_union *dst, struct ipsec_policy *ipo, tdbp->tdb_dstid)) continue; /* Otherwise, this is fine. */ - } else if (ipo->ipo_dstid != NULL) - continue; + } /* Check for credential matches. */ if (tdbp->tdb_local_cred != NULL) { @@ -397,8 +395,7 @@ gettdbbysrc(union sockaddr_union *src, struct ipsec_policy *ipo, tdbp->tdb_srcid)) continue; /* Otherwise, this is fine. */ - } else if (ipo->ipo_dstid != NULL) - continue; + } if (tdbp->tdb_dstid != NULL) { if (ipo->ipo_srcid != NULL && @@ -406,8 +403,7 @@ gettdbbysrc(union sockaddr_union *src, struct ipsec_policy *ipo, tdbp->tdb_dstid)) continue; /* Otherwise, this is fine. */ - } else if (ipo->ipo_srcid != NULL) - continue; + } /* XXX Check for filter matches. */ break; |