From cf960d124add2c43be8f27e09fe8da0f31a9ae53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sun, 7 Sep 2008 19:52:42 +0000 Subject: Remove unused and possibly erroneous code. --- etc/inc/vpn.inc | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'etc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index a8b6e56..b477b89 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -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() -- cgit v1.1