From 6eaf47c570f238bf5bd80a8c7c5bfee218a7e62a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 27 Nov 2009 10:15:56 +0100 Subject: [PATCH] "registration-table" interface: Add "radio-name", "ap", and "wds". --- src/registration_table.c | 4 ++++ src/routeros_api.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/registration_table.c b/src/registration_table.c index e5c82aa..812f54b 100644 --- a/src/registration_table.c +++ b/src/registration_table.c @@ -111,6 +111,10 @@ static ros_registration_table_t *rt_reply_to_regtable (const ros_reply_t *r) /* memset (ret, 0, sizeof (*ret)); ret->interface = ros_reply_param_val_by_key (r, "interface"); + ret->radio_name = ros_reply_param_val_by_key (r, "radio-name"); + + ret->ap = sstrtob (ros_reply_param_val_by_key (r, "ap")); + ret->wds = sstrtob (ros_reply_param_val_by_key (r, "wds")); ret->rx_rate = sstrtod (ros_reply_param_val_by_key (r, "rx-rate")); ret->tx_rate = sstrtod (ros_reply_param_val_by_key (r, "tx-rate")); diff --git a/src/routeros_api.h b/src/routeros_api.h index 73b6583..aac39db 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -120,6 +120,12 @@ struct ros_registration_table_s { /* Name of the interface */ const char *interface; + /* Name of the remote radio */ + const char *radio_name; + + /* ap is set to true, if the REMOTE radio is an access point. */ + _Bool ap; + _Bool wds; /* Receive and transmit rate in MBit/s */ double rx_rate; -- 2.11.0