On Wednesday, May 18, 2016 11:38:50 Sven Eckelmann wrote:
From: Antonio Quartulli antonio.quartulli@open-mesh.com
Add command to launch the throughput meter test. The throughput meter is a batman kernelspace tool for throughput measurements. The syntax is:
batctl tp <MAC>
The test is interruptible with SIGINT or SIGTERM; if the test succeeds with no error the throughput and the elapsed time are printed to stdout, otherwise occurred an error message is displayed (on stdout) accordingly.
Based on a prototype from Edo Monticelli montik@autistici.org
Signed-off-by: Antonio Quartulli antonio.quartulli@open-mesh.com Signed-off-by: Sven Eckelmann sven.eckelmann@open-mesh.com
v11:
- introduce new attribute BATADV_ATTR_PAD used for u64 alignment
v10:
- fix "a a" typo in batman_adv.h
v9:
- rebase on top of current master
- added include guards to tp_meter.h
- imported newest batman_adv.h and packet.h from batman-adv
- move iw/genl.c functions into own file "genl.c"
- adjust result handling based on new BATADV_TP_REASON_* names
v8:
- rebase on top of current master
Makefile | 2 + batman_adv.h | 43 +++++ genl.c | 140 ++++++++++++++++ genl.h | 31 ++++ main.c | 6 + main.h | 2 + man/batctl.8 | 24 ++- netlink.c | 8 + packet.h | 54 ++++++ tcpdump.c | 14 +- tp_meter.c | 540 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tp_meter.h | 27 +++ 12 files changed, 888 insertions(+), 3 deletions(-) create mode 100644 genl.c create mode 100644 genl.h create mode 100644 tp_meter.c create mode 100644 tp_meter.h
Applied in revision f109b34.
Thanks, Marek