diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-27 21:43:15 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-27 21:44:01 +0100 |
commit | 7a63d5d095edf84850715af23c6e380542896a1d (patch) | |
tree | 76602fe1b541ea055e68b5951e68d5208e90ecf4 /etc/inc/interfaces.inc | |
parent | 0174c48022b15978836ecd7b32d8e2d7a4a638c7 (diff) | |
download | pfsense-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.inc | 19 |
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; |