[Olsr-dev] JSON info dump complete

Teco Boot (spam-protected)
Wed May 16 06:59:40 CEST 2012


Op 15 mei 2012, om 23:03 heeft Henning Rogge het volgende geschreven:

> Oh, I see the definitions in the current stable are a little bit different:
> 
> http://olsr.org/git/?p=olsrd.git;a=blob;f=src/lq_plugin.h;h=19c68c7b478e2a5c93a31272eda3c4b10ece651d;hb=stable#l52
> 
> #define LINK_COST_BROKEN (1<<22)
This must be a bug. Change to 0xffffff?
I know most deployments do not use such high values for a link metric. I have plans to do so.

Teco

> #define ROUTE_COST_BROKEN (0xffffffff)
> 
> Of course most metrics use only a part of this range.
> 
> Henning
> 
> On Tue, May 15, 2012 at 7:10 PM, Teco Boot <(spam-protected)> wrote:
>> 
>> Op 15 mei 2012, om 18:25 heeft Henning Rogge het volgende geschreven:
>> 
>>> On Fri, May 11, 2012 at 3:59 PM, Hans-Christoph Steiner
>>> <(spam-protected)> wrote:
>>>> The central goal of the jsoninfo is to deliver the data in a parsable format that is good for programs to read.  It is the up to the program that is using the data to represent the data to the user.  If people want olsrd-generated human-readable data, they can already use httpinfo and txtinfo.
>>>> 
>>>> The data should be represented consistently with each unique data point only represented once.  Having multiple representations of the same data point just adds confusion for the person trying to figure out what's what.
>>>> 
>>>> Also towards the aim of consistency, I have standardized all time data points to be in milliseconds.  If there are other common data types, they should also use the same units.  Can anyone point out other such data types?  Are various "cost" data points in the same unit?  Are they directly comparible? If so, they could all just be called "cost", and then the rest of the info would be conveyed on context within a "routes" array entry, "links" array entry, etc.
>>> 
>>> The raw (integer) cost is always a value between 0 and 2^24-1
>> I say between 1 and 2^24-1
>>> 
>>> for a
>>> link and a value between 0 and 2^32-1
>> I say between 1 and 2^32-255
>> 
>> I say max_value is for useless links / routes. 2^32-1 could be used for useless route.
>> 
>> Teco
>> 
>>> for a route. Each plugin
>>> provides its own human readable representation for it (which would be
>>> useful if we use this json to generate a webpage).
>>> 
>>> Henning Rogge
>>> 
>>> --
>>> Steven Hawkings about cosmic inflation: "An increase of billions of
>>> billions of percent in a tiny fraction of a second. Of course, that
>>> was before the present government."
>>> 
>>> --
>>> Olsr-dev mailing list
>>> (spam-protected)
>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
>> 
> 
> 
> 
> -- 
> Steven Hawkings about cosmic inflation: "An increase of billions of
> billions of percent in a tiny fraction of a second. Of course, that
> was before the present government."





More information about the Olsr-dev mailing list