I just tested jsoninfo. When the olsrd is frozen, the jsoninfo plugin shows nothing. When olsrd is running fine, jsoninfo shows the normal information.<br><br>Seems that olsrd is waiting for something. <br>If I run:<br><br>
/home/olsrd -f /etc/olsrd.conf -d 0<br><br>the Linux terminal remains locked (the olsrd doesn't become a daemon). And if I run the command several times, the process freezes all times.<br>But after several <span id="result_box" class="short_text" lang="en"><span class="hps">attempts</span></span> the process runs fine, and after that it works <span id="result_box" class="short_text" lang="en"><span class="hps">all subsequent attempts</span></span>. until it freezes again...<br>
<br>So seems that this versions is waiting for something when it starts. Do you know if something was added that could create this <span id="result_box" class="short_text" lang="en"><span class="hps">behavior</span></span>? <br>
<br>Thanks<br><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 1:59 PM, Henning Rogge <span dir="ltr"><<a href="mailto:hrogge@googlemail.com" target="_blank">hrogge@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What does the txtinfo plugin tell you about the known topology/neighbors/routes?<br>
<span class="HOEnZb"><font color="#888888"><br>
Henning Rogge<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Mar 27, 2013 at 5:50 PM, Douglas Diniz <<a href="mailto:dgdiniz@gmail.com">dgdiniz@gmail.com</a>> wrote:<br>
> Hi, sorry, I sent the wrong log. I need to compile Olsrd with the flag<br>
> "-msoft-float", otherwise the printf shows only 0's.<br>
> But this doesn't affect the olsrd internal working.<br>
> The correct log is:<br>
><br>
> *** <a href="http://olsr.org" target="_blank">olsr.org</a> - 0.6.4-git_-hash_818b16a4ec8c80b704eadb83ce3cc45e - ***<br>
> Build date: 2013-03-27 13:40:47 on dgdiniz-desktop<br>
><br>
> <a href="http://www.olsr.org" target="_blank">http://www.olsr.org</a><br>
><br>
> Parsing file: "/etc/olsrd.conf"<br>
> Smart gateway system: disabled<br>
> Link quality fish eye 0<br>
><br>
> Interface Defaultssetting ifs_in_curr_cfg = 0<br>
> HELLO interval: 1.00<br>
> HELLO validity: 10.00<br>
> TC interval: 5.00<br>
> TC validity: 60.00<br>
> MID interval: 5.00<br>
> MID validity: 60.00<br>
> HNA interval: 5.00<br>
> HNA validity: 60.00<br>
><br>
> Mode: mesh<br>
> IPv4 broadcast/multicast : AUTO (d)<br>
> Mode : mesh (d)<br>
> IPv6 multicast : ff02::6d<br>
> HELLO emission/validity : 2.00/20.00<br>
> TC emission/validity : 5.00/300.00<br>
> MID emission/validity : 5.00/300.00<br>
> HNA emission/validity : 5.00/300.00<br>
><br>
> Autodetect changes : yes<br>
> IPv4 broadcast/multicast : AUTO<br>
> Mode : mesh (d)<br>
> IPv6 multicast : ::<br>
> HELLO emission/validity : 1.00/10.00<br>
> TC emission/validity : 5.00/60.00<br>
> MID emission/validity : 5.00/60.00<br>
> HNA emission/validity : 5.00/60.00<br>
> Autodetect changes : no<br>
> <a href="http://olsr.org" target="_blank">olsr.org</a> - 0.6.4-git_-hash_818b16a4ec8c80b704eadb83ce3cc45e - detaching<br>
> from the current process...<br>
><br>
> My olsrd.conf is:<br>
><br>
><br>
><br>
><br>
><br>
> #<br>
> # OLSR.org routing daemon config file<br>
> # This file contains the usual options for an ETX based<br>
> # stationary network without fisheye<br>
> # (for other options see olsrd.conf.default.full)<br>
> #<br>
> # Lines starting with a # are discarded<br>
> #<br>
><br>
> #### ATTENTION for IPv6 users ####<br>
> # Because of limitations in the parser IPv6 addresses must NOT<br>
> # begin with a ":", so please add a "0" as a prefix.<br>
><br>
> ###########################<br>
> ### Basic configuration ###<br>
> ###########################<br>
> # keep this settings at the beginning of your first configuration file<br>
><br>
> # Debug level (0-9)<br>
> # If set to 0 the daemon runs in the background, unless "NoFork" is set to<br>
> true<br>
> # (Default is 1)<br>
><br>
> # DebugLevel 1<br>
><br>
> # IP version to use (4 or 6)<br>
> # (Default is 4)<br>
><br>
> # IpVersion 4<br>
><br>
> #################################<br>
> ### OLSRd agent configuration ###<br>
> #################################<br>
> # this parameters control the settings of the routing agent which are not<br>
> # related to the OLSR protocol and it's extensions<br>
><br>
> # FIBMetric controls the metric value of the host-routes OLSRd sets.<br>
> # - "flat" means that the metric value is always 2. This is the preferred<br>
> value<br>
> # because it helps the linux kernel routing to clean up older routes<br>
> # - "correct" use the hopcount as the metric value.<br>
> # - "approx" use the hopcount as the metric value too, but does only update<br>
> the<br>
> # hopcount if the nexthop changes too<br>
> # (Default is "flat")<br>
><br>
> # FIBMetric "flat"<br>
><br>
> #######################################<br>
> ### Linux specific OLSRd extensions ###<br>
> #######################################<br>
> # these parameters are only working on linux at the moment, but might become<br>
> # useful on BSD in the future<br>
><br>
> # SrcIpRoutes tells OLSRd to set the Src flag of host routes to the<br>
> originator-ip<br>
> # of the node. In addition to this an additional localhost device is created<br>
> # to make sure the returning traffic can be received.<br>
> # (Default is "no")<br>
><br>
> # SrcIpRoutes no<br>
><br>
> # Specify the proto tag to be used for routes olsr inserts into kernel<br>
> # currently only implemented for linux<br>
> # valid values under linux are 1 .. 254<br>
> # 1 gets remapped by olsrd to 0 UNSPECIFIED (1 is reserved for ICMP<br>
> redirects)<br>
> # 2 KERNEL routes (not very wise to use)<br>
> # 3 BOOT (should in fact not be used by routing daemons)<br>
> # 4 STATIC<br>
> # 8 .. 15 various routing daemons (gated, zebra, bird, & co)<br>
> # (defaults to 0 which gets replaced by an OS-specific default value<br>
> # under linux 3 (BOOT) (for backward compatibility)<br>
><br>
> # RtProto 0<br>
><br>
> # Activates (in IPv6 mode) the automatic use of NIIT<br>
> # (see README-Olsr-Extensions)<br>
> # (default is "yes")<br>
><br>
> # UseNiit yes<br>
><br>
> # Activates the smartgateway ipip tunnel feature.<br>
> # See README-Olsr-Extensions for a description of smartgateways.<br>
> # (default is "no")<br>
><br>
> SmartGateway no<br>
><br>
> # Allows the selection of a smartgateway with NAT (only for IPv4)<br>
> # (default is "yes")<br>
><br>
> # SmartGatewayAllowNAT yes<br>
><br>
> # Defines what kind of Uplink this node will publish as a<br>
> # smartgateway. The existence of the uplink is detected by<br>
> # a route to <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>, ::ffff:0:0/96 and/or 2000::/3.<br>
> # possible values are "none", "ipv4", "ipv6", "both"<br>
> # (default is "both")<br>
><br>
> # SmartGatewayUplink "both"<br>
><br>
> # Specifies if the local ipv4 uplink use NAT<br>
> # (default is "yes")<br>
><br>
> # SmartGatewayUplinkNAT yes<br>
><br>
> # Specifies the speed of the uplink in kilobit/s.<br>
> # First parameter is upstream, second parameter is downstream<br>
> # (default is 128/1024)<br>
><br>
> # SmartGatewaySpeed 128 1024<br>
><br>
> # Specifies the EXTERNAL ipv6 prefix of the uplink. A prefix<br>
> # length of more than 64 is not allowed.<br>
> # (default is 0::/0<br>
><br>
> # SmartGatewayPrefix 0::/0<br>
><br>
> ##############################<br>
> ### OLSR protocol settings ###<br>
> ##############################<br>
><br>
> # HNA (Host network association) allows the OLSR to announce<br>
> # additional IPs or IP subnets to the net that are reachable<br>
> # through this node.<br>
> # Syntax for HNA4 is "network-address network-mask"<br>
> # Syntax for HNA6 is "network-address prefix-length"<br>
> # (default is no HNA)<br>
> Hna4<br>
> {<br>
> # Hna4 - Internet gateway:<br>
> #0.0.0.0 0.0.0.0<br>
> # Hna4 - more entries can be added:<br>
> #off168.10.0 255.255.255.0<br>
> #off168.11.0 255.255.255.0<br>
> #off168.12.0 255.255.255.0<br>
> #off168.13.0 255.255.255.0<br>
> #off168.14.0 255.255.255.0<br>
> }<br>
> Hna6<br>
> {<br>
> # Internet gateway<br>
> # 0:: 0<br>
> # specific small networks reachable through this node<br>
> # fec0:2200:106:0:0:0:0:0 48<br>
> }<br>
><br>
> ################################<br>
> ### OLSR protocol extensions ###<br>
> ################################<br>
><br>
> # Link quality algorithm (only for lq level 2)<br>
> # (see README-Olsr-Extensions)<br>
> # - "etx_float", a floating point ETX with exponential aging<br>
> # - "etx_fpm", same as ext_float, but with integer arithmetic<br>
> # - "etx_ff" (ETX freifunk), an etx variant which use all OLSR<br>
> # traffic (instead of only hellos) for ETX calculation<br>
> # - "etx_ffeth", an incompatible variant of etx_ff that allows<br>
> # ethernet links with ETX 0.1.<br>
> # (defaults to "etx_ff")<br>
><br>
> # LinkQualityAlgorithm "etx_ff"<br>
><br>
> # Fisheye mechanism for TCs (0 meansoff, 1 means on)<br>
> # (default is 1)<br>
><br>
> LinkQualityFishEye 0<br>
><br>
> #####################################<br>
> ### Example plugin configurations ###<br>
> #####################################<br>
> # Olsrd plugins to load<br>
> # This must be the absolute path to the file<br>
> # or the loader will use the following scheme:<br>
> # - Try the paths in the LD_LIBRARY_PATH<br>
> # environment variable.<br>
> # - The list of libraries cached in /etc/ld.so.cache<br>
> # - /lib, followed by /usr/lib<br>
> #<br>
> # the examples in this list are for linux, so check if the plugin is<br>
> # available if you use windows/BSD.<br>
> # each plugin should have a README file in it's lib subfolder<br>
><br>
> # LoadPlugin "olsrd_txtinfo.dll"<br>
> LoadPlugin "olsrd_txtinfo.so.0.1"<br>
> {<br>
> # port number the txtinfo plugin will be listening, default 2006<br>
> # PlParam "port" "81"<br>
> # ip address that can access the plugin, use "0.0.0.0"<br>
> # to allow everyone<br>
> PlParam "Accept" "127.0.0.1"<br>
> }<br>
><br>
> LoadPlugin "olsrd_dot_draw.so.0.3"<br>
> {<br>
> PlParam "Accept" "127.0.0.1"<br>
> }<br>
><br>
> LoadPlugin "olsrd_jsoninfo.so.0.0"<br>
> {<br>
> # the default port is 9090 but you can change it like this:<br>
> PlParam "port" "9090"<br>
><br>
> # You can set a "accept" single address to allow to connect to<br>
> # jsoninfo. If no address is specified, then localhost (127.0.0.1)<br>
> # is allowed by default. jsoninfo will only use the first "accept"<br>
> # parameter specified and will ignore the rest.<br>
><br>
> # to allow a specific host:<br>
> #PlParam "accept" "172.29.44.23"<br>
> # if you set it to 0.0.0.0, it will accept all connections<br>
> PlParam "accept" "0.0.0.0"<br>
><br>
> # specify a UUID for this node to track it for debugging<br>
> #PlParam "UUIDFile" "/etc/olsrd/olsrd.uuid"<br>
> }<br>
><br>
> #############################################<br>
> ### OLSRD default interface configuration ###<br>
> #############################################<br>
> # the default interface section can have the same values as the following<br>
> # interface configuration. It will allow you so set common options for all<br>
> # interfaces.<br>
><br>
> InterfaceDefaults {<br>
> # Ip4Broadcast 255.255.255.255<br>
> }<br>
><br>
> ######################################<br>
> ### OLSRd Interfaces configuration ###<br>
> ######################################<br>
> # multiple interfaces can be specified for a single configuration block<br>
> # multiple configuration blocks can be specified<br>
><br>
> # WARNING, don't forget to insert your interface names here !<br>
> Interface "wlan0"<br>
> {<br>
> # Interface Mode is used to prevent unnecessary<br>
> # packet forwarding on switched ethernet interfaces<br>
> # valid Modes are "mesh" and "ether"<br>
> # (default is "mesh")<br>
><br>
> HelloInterval 1.0<br>
> HelloValidityTime 10.0<br>
> TcInterval 5.0<br>
> TcValidityTime 60.0<br>
> MidInterval 5.0<br>
> MidValidityTime 60.0<br>
> HnaInterval 5.0<br>
> HnaValidityTime 60.0<br>
><br>
> Mode "mesh"<br>
><br>
> }<br>
><br>
><br>
> On Wed, Mar 27, 2013 at 12:41 PM, Henning Rogge <<a href="mailto:hrogge@googlemail.com">hrogge@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> Default and interface timings all zero? That sounds badly wrong.<br>
>><br>
>> Can you post your olsr config file?<br>
>><br>
>> Henning<br>
>><br>
>><br>
>> On Wed, Mar 27, 2013 at 4:38 PM, Douglas Diniz <<a href="mailto:dgdiniz@gmail.com">dgdiniz@gmail.com</a>> wrote:<br>
>> > Hi, I was using Olsrd 0.6.4 and now I updated to 0.6.5.2.<br>
>> > I'm cross-compiling to PowerPc.<br>
>> ><br>
>> > Now when I run "olsrd -f /etc/olsrd.conf" the process freezes, and stops<br>
>> > at<br>
>> > this point:<br>
>> ><br>
>> > *** <a href="http://olsr.org" target="_blank">olsr.org</a> - 0.6.5.2-git_-hash_64c0ebc7d623ac4986be69c7f7130d13 -<br>
>> > ***<br>
>> > Build date: 2013-03-27 11:50:13 on dgdiniz-desktop<br>
>> > <a href="http://www.olsr.org" target="_blank">http://www.olsr.org</a><br>
>> ><br>
>> ><br>
>> > Sometimes the process starts fine, but most of the time the process<br>
>> > stops at<br>
>> > this point.<br>
>> > Other times the process continue to run after some seconds, but most of<br>
>> > time<br>
>> > it freezes for a long time.<br>
>> ><br>
>> ><br>
>> > Olsrd version 0.6.4 starts fine every time:<br>
>> ><br>
>> > *** <a href="http://olsr.org" target="_blank">olsr.org</a> - 0.6.4-git_-hash_9297fc2b2ddda43b84f0e26d5f2e06be - ***<br>
>> > Build date: 2012-11-16 11:57:22 on dgdiniz-desktop<br>
>> > <a href="http://www.olsr.org" target="_blank">http://www.olsr.org</a><br>
>> ><br>
>> > Parsing file: "/etc/olsrd.conf"<br>
>> > Smart gateway system: disabled<br>
>> > Link quality fish eye 0<br>
>> ><br>
>> > Interface Defaultssetting ifs_in_curr_cfg = 0<br>
>> > HELLO interval: 0.00<br>
>> > HELLO validity: 0.00<br>
>> > TC interval: 0.00<br>
>> > TC validity: 0.00<br>
>> > MID interval: 0.00<br>
>> > MID validity: 0.00<br>
>> > HNA interval: 0.00<br>
>> > HNA validity: 0.00<br>
>> > Mode: mesh<br>
>> > IPv4 broadcast/multicast : AUTO (d)<br>
>> > Mode : mesh (d)<br>
>> > IPv6 multicast : ff02::6d<br>
>> > HELLO emission/validity : 0.00L�/0.00(null)<br>
>> > TC emission/validity : 0.00L�/0.00(null)<br>
>> > MID emission/validity : 0.00L�/0.00(null)<br>
>> > HNA emission/validity : 0.00L�/0.00(null)<br>
>> > Autodetect changes : yes<br>
>> > IPv4 broadcast/multicast : AUTO<br>
>> > Mode : mesh (d)<br>
>> > IPv6 multicast : ::<br>
>> > HELLO emission/validity : 0.00L�/0.00(null)<br>
>> > TC emission/validity : 0.00L�/0.00(null)<br>
>> > MID emission/validity : 0.00L�/0.00(null)<br>
>> > HNA emission/validity : 0.00L�/0.00(null)<br>
>> > Autodetect changes : no<br>
>> > <a href="http://olsr.org" target="_blank">olsr.org</a> - 0.6.4-git_-hash_9297fc2b2ddda43b84f0e26d5f2e06be -<br>
>> > detaching<br>
>> > from the current process...<br>
>> ><br>
>> ><br>
>> ><br>
>> > Someone knows what is happening?<br>
>> ><br>
>> > Thanks<br>
>> ><br>
>> > --<br>
>> > Olsr-dev mailing list<br>
>> > <a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
>> > <a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> We began as wanderers, and we are wanderers still. We have lingured<br>
>> long enough on the shores of the cosmic ocean. We are ready at last to<br>
>> set sail for the stars - Carl Sagan<br>
><br>
><br>
><br>
><br>
<br>
<br>
<br>
--<br>
We began as wanderers, and we are wanderers still. We have lingured<br>
long enough on the shores of the cosmic ocean. We are ready at last to<br>
set sail for the stars - Carl Sagan<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------------------------------<br>Douglas Gameiro Diniz<br>Engenheiro de Computação - 2003 - UNICAMP<br><br>Mobile: (19) 92158777<br>
Gtalk: dgdiniz<br>Msn: <a href="mailto:thedougdiniz@hotmail.com" target="_blank">thedougdiniz@hotmail.com</a>