From 8c1ed8aa5f386b319ec2d9c2128db912520f8777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Sun, 1 Feb 2009 15:26:39 +0000 Subject: Add more L2TP improvements. --- etc/inc/interfaces.inc | 3 +++ etc/inc/pfsense-utils.inc | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'etc/inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 67594c6..1579387 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1811,6 +1811,9 @@ function get_real_interface($interface = "wan") { $wanif = $interface; switch ($interface) { + case "l2tp": + $wanif = "l2tp"; + break; case "pptp": $wanif = "pptp"; break; diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c493371..c152821 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1759,6 +1759,9 @@ function convert_friendly_interface_to_real_interface_name($interface) { $wanif = $interface; switch ($interface) { + case "l2tp": + $wanif = "l2tp"; + break; case "pptp": $wanif = "pptp"; break; @@ -1883,6 +1886,9 @@ function convert_friendly_interface_to_friendly_descr($interface) { global $config; switch ($interface) { + case "l2tp": + $ifdesc = "L2TP"; + break; case "pptp": $ifdesc = "PPTP"; break; -- cgit v1.1