Project

General

Profile

« Previous | Next » 

Revision 7a63d5d0

Added by Ermal Luçi over 10 years ago

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

View differences:

etc/inc/interfaces.inc
1299 1299
	}
1300 1300
}
1301 1301

  
1302
function interface_isppp_type($interface) {
1303
	global $config;
1304

  
1305
	if (!is_array($config['interfaces'][$interface]))
1306
		return false;
1307

  
1308
	switch ($config['interfaces'][$interface]['ipaddr']) {
1309
	case 'pptp':
1310
	case 'l2tp':
1311
	case 'pppoe':
1312
	case 'ppp':
1313
		return true;
1314
		break;
1315
	default:
1316
		return false;
1317
		break;
1318
	}
1319
}
1320

  
1302 1321
function interfaces_ptpid_used($ptpid) {
1303 1322
	global $config;
1304 1323

  

Also available in: Unified diff