From: Florian Forster Date: Fri, 27 Nov 2009 09:15:56 +0000 (+0100) Subject: "registration-table" interface: Add "radio-name", "ap", and "wds". X-Git-Tag: librouteros-0.2.0~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6eaf47c570f238bf5bd80a8c7c5bfee218a7e62a;p=routeros-api.git "registration-table" interface: Add "radio-name", "ap", and "wds". --- 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;