[Ipsec-tools-commits] ipsec-tools/src/racoon policy.c,1.6,1.6.4.1
Brought to you by:
mit_warlord,
netbsd
From: VANHULLEBUS Y. <va...@us...> - 2005-09-16 14:16:40
|
Update of /cvsroot/ipsec-tools/ipsec-tools/src/racoon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22932/src/racoon Modified Files: Tag: ipsec-tools-0_6-branch policy.c Log Message: Do not parse all sptree in inssp() if we don't use Policies priority Index: policy.c =================================================================== RCS file: /cvsroot/ipsec-tools/ipsec-tools/src/racoon/policy.c,v retrieving revision 1.6 retrieving revision 1.6.4.1 diff -u -d -r1.6 -r1.6.4.1 --- policy.c 17 Nov 2004 19:03:37 -0000 1.6 +++ policy.c 16 Sep 2005 14:16:31 -0000 1.6.4.1 @@ -371,6 +371,7 @@ inssp(new) struct secpolicy *new; { +#ifdef HAVE_PFKEY_POLICY_PRIORITY struct secpolicy *p; TAILQ_FOREACH(p, &sptree, chain) { @@ -380,6 +381,7 @@ } } if (p == NULL) +#endif TAILQ_INSERT_TAIL(&sptree, new, chain); return; |