[Olsr-dev] quick and stupid version on txtinfo plugin

Henning Rogge (spam-protected)
Fri May 25 20:05:31 CEST 2012


On Fri, May 25, 2012 at 6:52 PM, Hans-Christoph Steiner
<(spam-protected)> wrote:
>> But I am thinking about the idea that plugins might call code from
>> other plugins at the moment.
>
> This would probably fit pretty well into the classic Model-View-Controller paradigm, so as long as olsrd has a way to dump all of its info, and accept commands from other things (via UNIX sockets, network sockets, etc.)  then it would be the Model, and people could build their own Views and Controllers as they see fit.

Could be done over the telnet port... simple telnet like input and JSON output.

> jsoninfo plugin is structured with this kind of thing in might, but its currently only delivering info, not accepting commands.  One thing I'm currently thinking about is where to draw the line on the information jsoninfo delivers.  For example, should it also deliver the ESSID, channel, BSSID, and MAC address?  I think it should deliver all relevant info so that is can be the one source of node info needed for management and test interfaces.

I have been working on a DLEP (Dynamic Link Exchange Protocol)
implementation last month and have a prototype ready. It transports
layer-2 data over network to a different device (normally meant for
connecting a "radio" with a "router" over things like ethernet). The
prototype comes with an OLSRd internal "layer-2 database", which has a
mac80211 listener for getting data and a "layer-2 viewer" plugin to
query the database (including JSON support too).

> Since this gets into very trackable information (MAC address, etc.) I am thinking there needs to be some kind of access control as well.  Probably just IP based for now, but ultimately, there probably should be an HTTPS option.

At the moment both HTTP and Telnet server support IP based ACLs and
the HTTP server supports basic authentication. If you combine it with
a HTTPS proxy it should be quite secure.

Henning

-- 
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