. * * Version 0.1 * Author: Octavio Benedi Sanchez */ function make_olsrd() { global $url_plugin; global $section; global $plugin; $data=Array(); $path='/etc/olsrd/olsrd.conf'; if (file_exists($path)) { $data=parse_olsrd($path); } $list='
OLSR configuration
Access OLSR summary
Interfaces
'; if($data['Interface']['interfaces']['eth0']) { $list.=''; } else { $list.=''; } if($data['Interface']['interfaces']['ath0']) { $list.=''; } else { $list.=''; } if($data['Interface']['interfaces']['ath1']) { $list.=''; } else { $list.=''; } $list.='
eth0 eth0 ath0 ath0 ath1 ath1
OLSR access
'; if($data['IpcConnect']['ipchit']) { for ($it=0;$it<$data['IpcConnect']['ipchit'];$it++) { $list.=' '; } } $list.=' '; if($data['IpcConnect']['ipcnit']) { for ($it=0;$it<$data['IpcConnect']['ipcnit'];$it++) { $list.=' '; } } $list.='
Autodetect Changes [yes|no]
HelloInterval [0.0-]
HelloValidityTime [0.0-]
TcInterval [0.0-]
TcValidityTime [0.0-]
MidInterval [0.0-]
MidValidityTime [0.0-]
HnaInterval [0.0-]
HnaValidityTime [0.0-]
Weight [0-]
IpVersion
AllowNoInt
TosValue [0-16]
Willingness [0-7]
UseHysteresis
HystScaling [0.01-0.99]
HysThrLow [0.01-HystThrHigh]
HystThrHigh [HystThrLow-0.99]
Pollrate [0.1-10.0]
NicChgsPollInt [0.1-100.0]
TcRedundancy
MprCoverage [1-]
LinkQualityLevel
LinkQualityWinSize
LinkQualityDijkstraLimit Hops
Host
Host
Nets
Net Address Netmask
Hna4
'; if($data['Hna4']['count']) { for ($it=0;$it<$data['Hna4']['count'];$it++) { $list.=' '; } } $list.='
Net Address Netmask
Hna6
'; if($data['Hna6']['count']) { for ($it=0;$it<$data['Hna6']['count'];$it++) { $list.=' '; } } $list.='
Net Address Netmask
LoadPlugin olsrd_httpinfo.so.0.1
'; } else { $list.=''; } $list.=' '; /* THIS IS COMMENTED BECAUSE WE NEED ACCESS TO OLSRD_TXTINFO.SO.0.1 SO IS NOT ALLOWED TO CHANGE IT. // olsrd_txtinfo.so.0.1 $list.='
Port
LoadPlugin olsrd_txtinfo.so.0.1:
Net '; if (isset($data['LoadPlugin']['olsrd_txtinfo.so.0.1']['PlParam']['accept'])) { $aux1=explode(' ',$data['LoadPlugin']['olsrd_txtinfo.so.0.1']['PlParam']['accept']); $list.=''; // } else { $list.=''; // } */ // olsrd_secure.so.0.5 $list.='
LoadPlugin olsrd_secure.so.0.5
Key '; return $list; } ?>