Update to racoon-0.7-cvs with Timo Teras patches.

Use setkey -f because spd loading works normally now.
This commit is contained in:
Seth Mos 2008-02-01 21:32:13 +00:00
parent 008da4cf1d
commit cf7a51617b

View File

@ -573,26 +573,16 @@ EOD;
/* flush SPD entries */
mwexec("/sbin/setkey -FP");
mwexec("/sbin/setkey -F");
$i = 0;
while($i < 4) {
/* load SPD */
mwexec("/bin/cat {$g['varetc_path']}/spd.conf | /usr/local/bin/slowdownpipe.sh | /sbin/setkey -c");
sleep(2);
$i++;
}
/* load SPD */
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
} else {
/* start racoon */
mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf");
/* flush SA + SPD entries */
mwexec("/sbin/setkey -FP");
mwexec("/sbin/setkey -F");
$i = 0;
while($i < 4) {
/* load SPD */
mwexec("/bin/cat {$g['varetc_path']}/spd.conf | /usr/local/bin/slowdownpipe.sh | /sbin/setkey -c");
sleep(2);
$i++;
}
/* load SPD */
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
}
}
}