Stefanauss, quella riga non l'ho trovata.
Allego il file di che hai indicato.
Premetto che è la versione di pfsense 2.1.5 ed il pacchetto di olsr è la
versione 1.0.1

Il giorno 27 ottobre 2014 13:16, Stefano De Carlo <stefana...@gmail.com> ha
scritto:

> Il 22/10/2014 19:45, Michele Salerno ha scritto:
> > Ma il punto è anche...come lo avvio al boot?
>
> Devi modificare il file /usr/local/pkg/olsrd.inc e commentare la riga
>
> LinkQualityWinSize     10
>
> È un'opzione deprecata fin già da olsr 0.6.3 incluso in pfSense 2.1.x, ma
> è stata erroneamente inclusa nel template di generazione della
> configurazione, e quindi il demone s'incazza quando la trova.
>
> Commenti la riga, togli la spunta ad enable olsr, apply, la rimetti,
> apply. E dovrebbe essere partito da solo a quel punto. Chiaramente
> disabilita il tuo script per esserne sicuro.
>
> Attento che devi ripetere la procedura ad ogni successivo upgrade di
> pfSense 2.1.x.
>
> Stefanauss.
>
>
> _______________________________________________
> Wireless mailing list
> Wireless@ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/wireless
>
>


-- 
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si
precisa che le informazioni contenute in questo messaggio sono riservate e
ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse
pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non
inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.

Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy
Code), may contain confidential and/or privileged information. If you are
not the addressee or authorized to receive this for the addressee, you must
not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message.
Thank you for your cooperation.
<?php
/* COPYRIGHT */

require_once("config.inc");

function setup_wireless_olsr() {
        global $config, $g;

        if ($g['platform'] == 'jail' || !$config['installedpackages']['olsrd'] 
|| !$config['installedpackages'])
                return;
        if(isset($config['system']['developerspew'])) {
                $mt = microtime();
                echo "setup_wireless_olsr($interface) being called $mt\n";
        }
        conf_mount_rw();

        foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
                $olsr_enable = $olsrd['enable'];
                if ($olsr_enable <> "on") {
                        if (is_process_running("olsrd"))
                                mwexec("/usr/bin/killall olsrd", true);
                        return;
                }
                $fd = fopen("{$g['varetc_path']}/olsr.conf", "w");

                if($olsrd['announcedynamicroute'] or $olsrd['enableannounce'] 
== "on") {
                        $enableannounce .= "\nHna4\n";
                        $enableannounce .= "{\n";
                if($olsrd['announcedynamicroute'])
                        $enableannounce .= 
"\t{$olsrd['announcedynamicroute']}\n";
                if($olsrd['enableannounce'] == "on")
                        $enableannounce .= "0.0.0.0 0.0.0.0";
                        $enableannounce .= "\n}\n";
                } else {
                        $enableannounce = "";
                }

                $olsr .= <<<EODA
#
# olsr.org OLSR daemon config file
#
# Lines starting with a # are discarded
#
# This file was generated by setup_wireless_olsr() in services.inc
#

# This file is an example of a typical
# configuration for a mostly static
# network(regarding mobility) using
# the LQ extention

# Debug level(0-9)
# If set to 0 the daemon runs in the background

DebugLevel      2

# IP version to use (4 or 6)

IpVersion       4

# Clear the screen each time the internal state changes

ClearScreen     yes

{$enableannounce}

# Should olsrd keep on running even if there are
# no interfaces available? This is a good idea
# for a PCMCIA/USB hotswap environment.
# "yes" OR "no"

AllowNoInt      yes

# TOS(type of service) value for
# the IP header of control traffic.
# If not set it will default to 16

#TosValue       16

# The fixed willingness to use(0-7)
# If not set willingness will be calculated
# dynamically based on battery/power status
# if such information is available

#Willingness            4

# Allow processes like the GUI front-end
# to connect to the daemon.

IpcConnect
{
     # Determines how many simultaneously
     # IPC connections that will be allowed
     # Setting this to 0 disables IPC

     MaxConnections  0

     # By default only 127.0.0.1 is allowed
     # to connect. Here allowed hosts can
     # be added

     Host            127.0.0.1
     #Host            10.0.0.5

     # You can also specify entire net-ranges
     # that are allowed to connect. Multiple
     # entries are allowed

     #Net             192.168.1.0 255.255.255.0
}

# Wether to use hysteresis or not
# Hysteresis adds more robustness to the
# link sensing but delays neighbor registration.
# Used by default. 'yes' or 'no'

UseHysteresis   no

# Hysteresis parameters
# Do not alter these unless you know
# what you are doing!
# Set to auto by default. Allowed
# values are floating point values
# in the interval 0,1
# THR_LOW must always be lower than
# THR_HIGH.

#HystScaling    0.50
#HystThrHigh    0.80
#HystThrLow     0.30


# Link quality level
# 0 = do not use link quality
# 1 = use link quality for MPR selection
# 2 = use link quality for MPR selection and routing
# Defaults to 0

LinkQualityLevel        {$olsrd['enablelqe']}

# Polling rate in seconds(float).
# Default value 0.05 sec

Pollrate        0.05


# TC redundancy
# Specifies how much neighbor info should
# be sent in TC messages
# Possible values are:
# 0 - only send MPR selectors
# 1 - send MPR selectors and MPRs
# 2 - send all neighbors
#
# defaults to 0

TcRedundancy    2

#
# MPR coverage
# Specifies how many MPRs a node should
# try select to reach every 2 hop neighbor
#
# Can be set to any integer >0
#
# defaults to 1

MprCoverage     3

# Example plugin entry with parameters:

EODA;

if($olsrd['enablehttpinfo'] == "on") {
        $olsr .= <<<EODB

LoadPlugin "/usr/local/lib/olsrd_httpinfo.so.0.1"
{
    PlParam     "port"   "{$olsrd['port']}"
    PlParam     "Net"    "{$olsrd['allowedhttpinfohost']} 
{$olsrd['allowedhttpinfosubnet']}"
}

EODB;

}

if($olsrd['enabledsecure'] == "on") {
        @file_put_contents("{$g['tmp_path']}/olsrkey.txt", $olsrd['securekey']);
        $olsr .= <<<EODC

LoadPlugin "/usr/local/lib/olsrd_secure.so.0.5"
{
    PlParam     "Keyfile"   "{$g['tmp_path']}/olsrkey.txt"
}

EODC;

}

if($olsrd['enabledyngw'] == "on") {

        /* unset default route, olsr auto negotiates */
        mwexec("/sbin/route delete default");

        $olsr .= <<<EODE

LoadPlugin "/usr/local/lib/olsrd_dyn_gw.so.0.4"
{
    # how often to look for a inet gw, in seconds
    # defaults to 5 secs, if commented out
    PlParam     "Interval"   "{$olsrd['polling']}"

    # if one or more IPv4 addresses are given, do a ping on these in
    # descending order to validate that there is not only an entry in
    # routing table, but also a real internet connection. If any of
    # these addresses could be pinged successfully, the test was
    # succesful, i.e. if the ping on the 1st address was successful,the
    # 2nd won't be pinged
    PlParam     "Ping"       "{$olsrd['ping']}"
    #PlParam     "HNA"   "192.168.81.0 255.255.255.0"
}

EODE;

}

foreach($config['installedpackages']['olsrd']['config'] as $conf) {
        $interfaces = explode(',', $conf['iface_array']);
        foreach($interfaces as $interface) {
                $realinterface = 
convert_friendly_interface_to_real_interface_name($interface);
$olsr .= <<<EODAD
Interface "{$realinterface}"
{

    # Hello interval in seconds(float)
    HelloInterval    2.0

    # HELLO validity time
    HelloValidityTime   20.0

    # TC interval in seconds(float)
    TcInterval        5.0

    # TC validity time
    TcValidityTime      30.0

    # MID interval in seconds(float)
    MidInterval 5.0

    # MID validity time
    MidValidityTime     30.0

    # HNA interval in seconds(float)
    HnaInterval 5.0

    # HNA validity time
    HnaValidityTime     30.0

    # When multiple links exist between hosts
    # the weight of interface is used to determine
    # the link to use. Normally the weight is
    # automatically calculated by olsrd based
    # on the characteristics of the interface,
    # but here you can specify a fixed value.
    # Olsrd will choose links with the lowest value.

    # Weight 0


}

EODAD;

        }
        break;
}
                fwrite($fd, $olsr);
                fclose($fd);
        }

        if (is_process_running("olsrd"))
                mwexec("/usr/bin/killall olsrd", true);

        sleep(2);

        mwexec_bg("/usr/local/sbin/olsrd -f {$g['varetc_path']}/olsr.conf");

        conf_mount_ro();
}

?>
_______________________________________________
Wireless mailing list
Wireless@ml.ninux.org
http://ml.ninux.org/mailman/listinfo/wireless

Rispondere a