On Tuesday 03 May 2016 01:28:28 Antonio Quartulli wrote:
shouldn't we propagate the value saved in err to
We found this error while using the tp_meter, because we tried to run it
against a non-existing originator and batctl crashed.
Yes, looks like I've missed this while reviewing your tp_meter code. Was
the crash something like:
root@node02:~# /host/batctl/batctl tp 02:ba:de:af:ff:01
Throughput meter called towards 02:ba:de:af:ff:01
tp_meter.c:198:36: runtime error: division by zero
traps: batctl trap divide error ip:410f31 sp:7ffea78512c0 error:0 in
Floating point exception
I will most likely add code catching it in both batctl and batman-adv.