projects
/
routeros-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaf47c
)
src/ros.c: Add information about radio_name and ap/wds to the interface output.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 27 Nov 2009 09:20:25 +0000
(10:20 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 27 Nov 2009 09:20:25 +0000
(10:20 +0100)
src/ros.c
patch
|
blob
|
history
diff --git
a/src/ros.c
b/src/ros.c
index
4a2fccb
..
b7934df
100644
(file)
--- a/
src/ros.c
+++ b/
src/ros.c
@@
-78,7
+78,9
@@
static void regtable_dump (const ros_registration_table_t *r) /* {{{ */
if (r == NULL)
return;
- printf ("=== %s ===\n", r->interface);
+ printf ("=== %s / %s ===\n", r->interface, r->radio_name);
+ printf ("Mode: %12s\n",
+ r->ap ? (r->wds ? "AP with WDS" : "Access point") : "Station");
printf ("Rate: %7g Mbps / %7g Mbps\n", r->rx_rate, r->tx_rate);
printf ("Packets: %12"PRIu64" / %12"PRIu64"\n",
r->rx_packets, r->tx_packets);