From 11bc553c235f1a66f2391cad9f293aaf69b914d6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 26 Apr 2006 20:36:05 +0000 Subject: OLSR fixes --- etc/inc/services.inc | 2 +- usr/local/pkg/olsrd.xml | 31 ++++++++++++++++++++++++++++--- usr/local/www/services_dhcp.php | 11 ++++++++++- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 84e7e6a..648ffff 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1008,7 +1008,7 @@ UseHysteresis no # 2 = use link quality for MPR selection and routing # Defaults to 0 -LinkQualityLevel 2 +LinkQualityLevel {$olsrd['enablelqe']} # Link quality window size # Defaults to 10 diff --git a/usr/local/pkg/olsrd.xml b/usr/local/pkg/olsrd.xml index 7f4b212..9895446 100644 --- a/usr/local/pkg/olsrd.xml +++ b/usr/local/pkg/olsrd.xml @@ -1,6 +1,6 @@ - olsrd + OLSRD 1.0 OLSRD @@ -17,13 +17,17 @@ OLSRD Settings /pkg_edit.php?xml=olsrd.xml&id=0 - + + + /usr/local/www/ + 0755 + http://www.pfsense.com/packages/config/OLSRD_rules.php + ['installedpackages']['OLSRD']['config'] - pkg_edit.php?xml=olsrd.xml&id=0 @@ -40,6 +44,7 @@ true 3 interfaces_selection + Select the interfaces that OLSR will bind to. You can use the CTRL or COMMAND key to select multiple interfaces. Enable HTTPInfo Plugin @@ -97,6 +102,26 @@ 5 50 + + Link Quality Level + enablelqe + Enables Link Quality Extensions. Setting to 1 or 2 breaks RFC3626 compability! + select + + + + + + diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 06065f3..652ccd3 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -35,7 +35,16 @@ $if = $_GET['if']; if ($_POST['if']) $if = $_POST['if']; -$iflist = array("lan" => "LAN"); +/* if OLSRD is enabled, allow WAN to house DHCP. */ +foreach($config['installedpackages']['olsrd']['config'] as $olsrd) { + if($olsr['enable']) { + $iflist = array("lan" => "LAN", "wan" => "WAN"); + break; + } +} + +if(!$iflist) + $iflist = array("lan" => "LAN"); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $oc = $config['interfaces']['opt' . $i]; -- cgit v1.1