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:
parent
e23e06eb6f
commit
f9821d8021
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user