[ninux-not-wireless] P2P DNS

Giuseppe De Marco demarcog83 at gmail.com
Sun Jan 4 13:22:36 CET 2015


Il 2 gennaio 2015 02:44, Giuseppe De Marco <demarcog83 at gmail.com> ha scritto:
> Il 30 dicembre 2014 21:46, Giuseppe De Marco <demarcog83 at gmail.com> ha scritto:
>
> https://github.com/zioproto/olsrd/blob/master/lib/nameservice/src/nameservice.c
>
> alla linea 227
>
> { .name = "", .set_plugin_parameter = &set_nameservice_host, .data =
> &my_names },
>
> eppoi alla linea 435, leggendo lo switch che fà il parse dei parametri
> contenuti di /etc/config/olsrd, ci siamo resi conto che le opzioni che
> andiamo ad inserire non vengono parsate (!).
>
> Questa è ufficialmente la prima grande delusione del 2015.
> Non ce lo meritiamo, è una ingiustizia.

Penso che la risposta di Jon Ayers ci sveli un piccolo importante
particolare, la copio di seguito.
Dovremmo provvedere a compilare olsrd 0.6.7 su openWRT 14.07 e testare
questa feature.
Sono fermamente convinto che il carico computazione del parse di un
file di testo sia nettamente inferiore al carico di un processo che
usa DHT e fà node discovery in p2p.

In questa accezione a parità di beneficio ( sfruttando al massimo
nameservice ) avremo un carico - anche in termini di over head di rete
- nettamente inferiore.

La risposta di Joe:

---------- Forwarded message ----------
From: Joe Ayers <joe at ayerscasa.com>
Date: 2015-01-04 4:02 GMT+01:00
Subject: Re: [Olsr-dev] PlParam "IP.ADDR" "another-name.mesh"
To: Giuseppe De Marco <demarcog83 at gmail.com>


We've been relying on this capability in our released image for a few
years and recently jumped from olsr 0.6.4 to 0.6.7 shortly after it
was released.  No experience with what might work or not in-between.

Joe AE6XE

On Sat, Jan 3, 2015 at 6:27 PM, Giuseppe De Marco <demarcog83 at gmail.com> wrote:
>
> 2015-01-04 2:46 GMT+01:00 Joe Ayers <joe at ayerscasa.com>:
> > Here's the specifics of what we are doing with broadband-hamnet.org live
> > example with 0.6.7 :
> >
> > Hna4
> > {
> >                 10.161.53.32 255.255.255.248
> > }
> >
> > LoadPlugin "olsrd_nameservice.so.0.3"
> > {
> >     PlParam "sighup-pid-file" "/var/run/dnsmasq.pid"
> >     PlParam "interval" "30"
> >     PlParam "timeout" "300"
> >     PlParam "name-change-script" "touch /tmp/namechange"
> >     PlParam "name" "AE6XE-gateway"
> >     PlParam "10.161.53.36" "AE6XE-voip"
> >     PlParam "10.161.53.34" "ae6xe-aircam2"
> >     PlParam "10.85.38.164" "dtdlink.AE6XE-gateway.local.mesh"
> >     PlParam "service" "http://AE6XE-voip:80/|tcp|10.161.53.36"
> >     PlParam "service" "http://ae6xe-aircam2:80/|tcp|fishcam-view_view"
> > }
> >
> > Subsequently in /var/run/hosts_olsr:
> >
> > ### this /etc/hosts file is overwritten regularly by olsrd
> > ### do not edit
> >
> > 127.0.0.1       localhost
> > ::1             localhost
> >
> > 10.84.38.164    AE6XE-gateway   # myself
> > 10.161.53.36    AE6XE-voip      # myself
> > 10.161.53.34    ae6xe-aircam2   # myself
> > 10.85.38.164    dtdlink.AE6XE-gateway.local.mesh        # myself
> > 10.45.205.112   dtdlink.K5DLQ-UNSM2-100.local.mesh      # 10.44.205.112
> > 10.44.205.112   K5DLQ-UNSM2-100 # 10.44.205.112
> > 172.31.182.82   mid1.K5DLQ-UNSM2-100    # 10.44.205.112 (mid #1)
> > 172.31.182.78   mid2.K5DLQ-UNSM2-100    # 10.44.205.112 (mid #2)
> > [...]
> >
> > Regards,
> > Joe AE6XE
>
> Thank you Joe, your example is very exhaustive, anyway it doesn't work on
>
>  *** olsr.org -  0.6.6-git_80c7283-hash_e45457ce0e767daa107d4dfcf25fa621 ***
>  Build date: 2014-11-08 01:21:53 on maker
>  http://www.olsr.org
>
> Even if PlParam was inserted the other nodes, and the localhost too,
> doesn't get any changes about theese static hostnames.
>
> So my next try will be a fresh compilation of olsr version 0.6.7 on my
> openWRT devices.
> Can you guarantee me that this feature is available only on olsr version 0.6.7 ?
> if so should not be I could think about a wrong package version in
> openWRT 14.07 (Barrier Braker).
>
> Thank you, your answer is the most important part of what I was looking for,
> Giuseppe



More information about the Not-wireless mailing list