correct fast ipsec logic: compare destination ip address against the

contents of the SA, not the SP

Submitted by:	"Doug Ambrisko" <ambrisko@verniernetworks.com>
This commit is contained in:
sam 2002-11-08 23:11:02 +00:00
parent e23e06eb6f
commit f9821d8021

View File

@ -637,7 +637,7 @@ ip_output(m0, opt, ro, flags, imo, inp)
tdbi = (struct tdb_ident *)(mtag + 1);
if (tdbi->spi == sp->req->sav->spi &&
tdbi->proto == sp->req->sav->sah->saidx.proto &&
bcmp(&tdbi->dst, &sp->spidx.dst,
bcmp(&tdbi->dst, &sp->req->sav->sah->saidx.dst,
sizeof (union sockaddr_union)) == 0) {
/*
* No IPsec processing is needed, free