[Babel-users] wanted to map the babel network

Juliusz Chroboczek jch at pps.univ-paris-diderot.fr
Sat Jun 13 21:06:48 UTC 2015


> This is what we currently do in the nodewatcher-agent module for 
> reporting Babel topology information: 
> 
> https://github.com/wlanslovenija/nodewatcher-agent/blob/master/modules/routing_babel.c

Looks good.

But why do you limit the JSON object to known key/value pairs?  I would 
just do

   if(isnum(value[0]))
       json_object_add(... key, json_object_new_int(atol(value)))
   else
       json_object_add(... key, json_object_new_string(value))

This has the added advantage of needing no changes as I add new key/value 
pairs.

> Yeah, link-local addresses of the current node are not reported by Babel

Do you want me to add that?

-- Juliusz



More information about the Babel-users mailing list