Remove unused and possibly erroneous code.

This commit is contained in:
Ermal Luçi 2008-09-07 19:52:42 +00:00
parent 039fe42ca1
commit cf960d124a

View File

@ -838,30 +838,6 @@ EOD;
return 0;
}
/* XXX: This is totally broken. */
function vpn_localnet_determine($adr, & $sa, & $sn) {
global $config, $g;
if (isset ($adr)) {
if ($adr['network']) {
switch ($adr['network']) {
case 'lan' :
$sn = $config['interfaces']['lan']['subnet'];
$sa = gen_subnet($config['interfaces']['lan']['ipaddr'], $sn);
break;
}
} else
if ($adr['address']) {
list ($sa, $sn) = explode("/", $adr['address']);
if (is_null($sn))
$sn = 32;
}
} else {
$sn = $config['interfaces']['lan']['subnet'];
$sa = gen_subnet($config['interfaces']['lan']['ipaddr'], $sn);
}
}
/* Forcefully restart IPsec
* This is required for when dynamic interfaces reload
* For all other occasions the normal vpn_ipsec_configure()