Commit Graph

17 Commits

Author SHA1 Message Date
Steffen Pankratz eb60c91900 - use value from /var/sysinfo/model instead of /var/sysinfo/board_name for model property
Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2015-11-17 15:28:39 +01:00
Tim Niemeyer e137e40303 alfred: configure and enable node.data on alfred
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Dominik Heidler <dominik@heidler.eu>
Reviewed-by: Steffen Pankratz <kratz00@gmx.de>
2015-10-13 19:40:24 +02:00
Tim Niemeyer d9dbaf7d97 nodewatcher: only add direct batman originators
This is a normal scenario:
-- %< --
originator last-seen (quality) nexthop [interface]: .. possible nexthops ..
A    0.270s   (134) A [    w2mesh]: C ( 79) A (134)
B    0.170s   (245) B [    w2mesh]: B (245)
C    1.850s   (152) C [    w2mesh]: A ( 83) C (152)
-- >% --
Nodewatcher will send only the originator, last-seen, quality, nexthop
and the interface. Nothing about the possible nexthops. Because Netmon
can't show every Originator (to bad performance), we need some filtering,
to only see direct neighbors. At the moment Netmon stores only
originator == nexthop entries. And there is no other way to filter,
because Netmon has only this information.

But this may fail. The problem occurs, if A has a better connection
(e.g. via eth0) with leads to an quality of 255:
-- %< --
A    0.270s   (255) A [    eth0]: C ( 79) A (255)
B    0.170s   (245) B [    w2mesh]: B (245)
C    1.850s   (204) A [    eth0]: A (204) C (152)
-- >% --
In this example, Netmon wouldn't show the connection to C.

This patch doesn't use the originator == nexthop filter. Instead a
filter like "originator is anywhere in the possible nexthops" is used.
With this, we can disable the filtering in Netmon and show at least that
there is directly connection. With the "batctl o" command it is not
possible to show the correct interface for this direct connection.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
2015-10-11 12:00:03 +02:00
Tim Niemeyer 368241ec28 nodewatcher: remove unused ip addresses from xml data
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
2015-10-11 11:50:39 +02:00
Tim Niemeyer d6ac1df7ec nodewatcher: add the router model
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
2015-10-11 11:48:32 +02:00
Tim Niemeyer 913ccd1733 nodewatcher: add a iface blacklist
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
2015-10-11 11:47:33 +02:00
Dominik Heidler 7eb76deda3 compress node.data using gzip (to save traffic)
netmon supports gzip compressed node.data as of
d96458744b

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
- Backported from ffff-next
CC: Dominik Heidler <dominik@heidler.eu>
Signed-off-by: Dominik Heidler <dominik@heidler.eu>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
2015-10-11 11:45:37 +02:00
Steffen Pankratz d21e99a5f5 - removed FIRMWARE_REVISION as it has the same information as RELEASE_DATE and renamed RELEASE_DATE do better match its actual purpose
Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2015-07-20 18:26:31 +02:00
Oliver Voelker 5d907840f7 leerzeilen entfernt, fehlende shebangs hinzugefügt 2014-11-12 21:22:55 +01:00
Tim Niemeyer 5dc555b85c configurator/nodewatcher/wlanwatchdog: only run when system is ready
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2014-08-17 14:59:26 +02:00
Clemens John 26d8485da6 Add fastd version to nodewatcher
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-11-09 00:11:00 +01:00
Clemens John ad7f5d2a02 Nodewatcher: add information about batman adv. gateway mode and gateway list to xml
Signed-off-by: Clemens John <clemens-john@gmx.de>
2013-10-18 17:01:39 +02:00
Tim Niemeyer 66d46b1860 Nodwatcher: read also unknown interfaces
Fixes #501

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-04-01 17:57:18 +02:00
Tim Niemeyer 239234c0fa Nodewatcher optimisation
The nodewatcher.sh got a diet. :)

Stats from DIR300

Old nodewatcher:
real    1m 43.86s
user    0m 5.59s
sys 0m 32.78s
Memory consumption.. over ~1.5MB

New nodewatcher:
real    0m 17.17s
user    0m 0.99s
sys 0m 4.33s
Memory consumption.. below ~0.5MB

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-02 01:02:02 +01:00
Tim Niemeyer a7e79f3adf Nodewatcher: fix out interface detection
Sometimes the interfaces have shorter names, then batctl adds some
spaces just before the iface name. With cut we can get this right.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-12-16 11:47:41 +01:00
Tim Niemeyer ce90577b5d Nodewatcher was confused if link_quality was below 100
When the link_quality is below below 100 there is a little whitespace
between the value an the bracket like ( 99). This confused the awk
skript and is fixed by filtering all brackets.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-10-24 22:15:14 +02:00
Tim Niemeyer b4d756cb91 New build_script structure.
The new build_script uses a bsp-style interface. Now it's possible
to work on more than one board at the same time. Just select the
selected_bsp with the build_script and start over.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-09-29 18:58:44 +02:00