summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-07 19:52:42 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-07 19:52:42 +0000
commitcf960d124add2c43be8f27e09fe8da0f31a9ae53 (patch)
tree09343546436f613ef1f999d639b5d6fffafbfa5e /etc
parent039fe42ca122d2e2c0169c290e1f555425c187a8 (diff)
downloadpfsense-cf960d124add2c43be8f27e09fe8da0f31a9ae53.zip
pfsense-cf960d124add2c43be8f27e09fe8da0f31a9ae53.tar.gz
Remove unused and possibly erroneous code.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc24
1 files changed, 0 insertions, 24 deletions
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()
OpenPOWER on IntegriCloud