WTP sends session id.
FossilOrigin-Name: 32e0df82a8e40e3a3953127ceae58359cdce56696d802e54983f813b00ed1342
This commit is contained in:
@ -114,7 +114,6 @@ static int run_discovery(struct conn *conn)
|
||||
|
||||
time_t timer = cw_timer_start(0);
|
||||
|
||||
cw_itemstore_t discs;
|
||||
|
||||
while (!cw_timer_timeout(timer)
|
||||
&& conn->capwap_state == CW_STATE_DISCOVERY) {
|
||||
@ -129,9 +128,16 @@ static int run_discovery(struct conn *conn)
|
||||
cw_log(LOG_ERROR,"Error reading messages: %s",strerror(errno));
|
||||
break;
|
||||
}
|
||||
discs = cw_itemstore_get_avltree(conn->remote, CW_ITEM_DISCOVERIES);
|
||||
}
|
||||
|
||||
cw_itemstore_t discs;
|
||||
discs = cw_itemstore_get_avltree(conn->remote, CW_ITEM_DISCOVERIES);
|
||||
|
||||
|
||||
if (!discs) {
|
||||
cw_log(LOG_ERR,"No discovery responses received");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int i;
|
||||
|
||||
|
@ -187,7 +187,7 @@ int join()
|
||||
struct conn * conn = get_conn();
|
||||
cw_aciplist_t iplist = cw_itemstore_get_avltree(conn->local,CW_ITEM_CAPWAP_CONTROL_IP_ADDRESS_LIST);
|
||||
if (!iplist){
|
||||
cw_log(LOG_ERR,"No Ips to join controller.");
|
||||
cw_log(LOG_ERR,"No IPs to join controller.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,6 @@ int main()
|
||||
cw_itemstore_set_str(conn->local,CW_ITEM_WTP_NAME,"WTP Tube");
|
||||
|
||||
|
||||
cw_log(LOG_ERR,"Entetrente");
|
||||
|
||||
discovery();
|
||||
join();
|
||||
|
Reference in New Issue
Block a user