summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-02-01 15:26:39 +0000
committerErmal Luçi <eri@pfsense.org>2009-02-01 15:26:39 +0000
commit8c1ed8aa5f386b319ec2d9c2128db912520f8777 (patch)
tree8f953bf10aaf2e4b91781bcca1eb4766bd88954b /etc
parentd6efe64b134cdd3d843bc27459f32f39ce31b499 (diff)
downloadpfsense-8c1ed8aa5f386b319ec2d9c2128db912520f8777.zip
pfsense-8c1ed8aa5f386b319ec2d9c2128db912520f8777.tar.gz
Add more L2TP improvements.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
-rw-r--r--etc/inc/pfsense-utils.inc6
2 files changed, 9 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud