17 #ifndef WISUNBORDERROUTER_H 18 #define WISUNBORDERROUTER_H 127 mesh_error_t set_rpl_parameters(uint8_t dio_interval_min, uint8_t dio_interval_doublings, uint8_t dio_redundancy_constant);
141 mesh_error_t get_rpl_parameters(uint8_t *dio_interval_min, uint8_t *dio_interval_doublings, uint8_t *dio_redundancy_constant);
156 mesh_error_t validate_rpl_parameters(uint8_t dio_interval_min, uint8_t dio_interval_doublings, uint8_t dio_redundancy_constant);
170 mesh_error_t set_pan_configuration(uint16_t pan_id);
181 mesh_error_t get_pan_configuration(uint16_t *pan_id);
193 mesh_error_t validate_pan_configuration(uint16_t pan_id);
236 mesh_error_t set_radius_server_ipv6_address(
const char *address);
247 mesh_error_t get_radius_server_ipv6_address(
char *address);
261 mesh_error_t set_radius_shared_secret(uint16_t shared_secret_len,
const uint8_t *shared_secret);
273 mesh_error_t get_radius_shared_secret(uint16_t *shared_secret_len, uint8_t *shared_secret);
321 mesh_error_t set_dns_query_result(
SocketAddress *address,
char *domain_name);
324 mesh_error_t configure();
325 mesh_error_t apply_configuration(int8_t mesh_if_id);
326 mesh_error_t set_bbr_radius_address(
void);
327 mesh_error_t set_bbr_radius_shared_secret(
void);
328 mesh_error_t set_bbr_radius_timing(
void);
329 char _radius_ipv6_addr[40];
332 .radius_retry_imax = 0,
333 .radius_retry_count = 0
335 char *_shared_secret = NULL;
336 uint16_t _shared_secret_len = 0;
337 int8_t _mesh_if_id = -1;
338 bool _radius_ipv6_addr_set =
false;
339 bool _configured =
false;
340 bool _radius_timing_set =
false;
uint8_t radius_retry_count
RADIUS retry trickle count; default 3.
Wi-SUN Border Router class.
uint16_t radius_retry_imax
RADIUS retry trickle timer Imax; in 100ms units; range 1-1200; default 30 (3 seconds) ...
uint16_t radius_retry_imin
RADIUS retry trickle timer Imin; in 100ms units; range 1-1200; default 20 (2 seconds) ...
uint8_t version
RPL version number.
Representation of a stack's view of an interface.
Struct br_information Border router dynamic information.
uint8_t rpl_dodag_id[16]
Border router dodag id.
uint64_t host_timestamp
Timestamp of the the device.
uint8_t instance_id
Border router instance identifier defined in RPL.
Struct ws_br_radius_timing_t is RADIUS timing configuration structure.
uint8_t gateway_addr[16]
Gateway Local Address.
uint16_t device_count
Amount of devices in the network.
Common interface that is shared between network devices.
Struct br_route_info is parent child relation structure.
uint8_t ipv6_iid[8]
IID of Border router.
uint8_t ipv6_prefix[8]
Address prefix given to devices in network set to 0 if not available.