summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-29 21:02:01 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-29 21:02:01 +0000
commitc1334331a4d40df95a0b2e70ed404fd8619a6fc8 (patch)
tree0b32c225263bbe97e193d2b550d3e5db9263435c /etc/inc
parent3c63cc7c989dc461b2ffb9e4142dd3f3c781d6f9 (diff)
downloadpfsense-c1334331a4d40df95a0b2e70ed404fd8619a6fc8.zip
pfsense-c1334331a4d40df95a0b2e70ed404fd8619a6fc8.tar.gz
Add more debugging to trace the pppoe problems.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/gwlb.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 1d0acf0..6de8f28 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -231,8 +231,8 @@ function return_gateways_array() {
$gateway['gateway'] = lookup_gateway_ip_by_name($config['interfaces'][$friendly]['gateway']);
} else {
$gateway['gateway'] = get_interface_gateway($ifname);
- echo log_error("Found dynamic gateway '{$gateway['gateway']}'");
}
+ log_error("Interface $friendly has a gateway, found gateway '{$gateway['gateway']}'");
/* Loopback for dynamic interfaces without a IP */
if(!is_ipaddr(trim($gateway['gateway']))) {
$gateway['gateway'] = "127.0.0.2";
@@ -240,8 +240,10 @@ function return_gateways_array() {
/* do not add dynamic gateways if it is also found in the gateways array */
if(is_array($config['gateways']['gateway_item'])) {
foreach($config['gateways']['gateway_item'] as $gateway_item) {
- if($gateway_item['gateway'] == $gateway['gateway'])
+ if($gateway_item['gateway'] == $gateway['gateway']) {
+ log_error("Found a match for {$gateway['gateway']} in the config array, skipping $friendly");
continue 2;
+ }
}
}
@@ -258,6 +260,8 @@ function return_gateways_array() {
$gateway['attribute'] = "system";
$gateway['interface'] = "$friendly";
$gateways_arr[] = $gateway;
+ $debugstr = print_r($gateway, true);
+ log_error("proceeding with gateway config $debugstr");
}
}
OpenPOWER on IntegriCloud