summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-27 21:43:15 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-27 21:44:01 +0100
commit7a63d5d095edf84850715af23c6e380542896a1d (patch)
tree76602fe1b541ea055e68b5951e68d5208e90ecf4 /etc/inc/interfaces.inc
parent0174c48022b15978836ecd7b32d8e2d7a4a638c7 (diff)
downloadpfsense-7a63d5d095edf84850715af23c6e380542896a1d.zip
pfsense-7a63d5d095edf84850715af23c6e380542896a1d.tar.gz
Fixes #4040 for pppoe use static route with -iface option to help when more than one pppoe has the same gateway. Also kill states when reloading apinger to catch up with new route
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 24db3c4..066d8da 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1299,6 +1299,25 @@ function interfaces_carp_set_maintenancemode($carp_maintenancemode){
}
}
+function interface_isppp_type($interface) {
+ global $config;
+
+ if (!is_array($config['interfaces'][$interface]))
+ return false;
+
+ switch ($config['interfaces'][$interface]['ipaddr']) {
+ case 'pptp':
+ case 'l2tp':
+ case 'pppoe':
+ case 'ppp':
+ return true;
+ break;
+ default:
+ return false;
+ break;
+ }
+}
+
function interfaces_ptpid_used($ptpid) {
global $config;
OpenPOWER on IntegriCloud