Reads Cisco 1048 elements
FossilOrigin-Name: 862bfe7c8db943b9aada1de60f3c537ffe7fd0fc0f943d952c6a912ff9f53cdd
This commit is contained in:
@ -26,6 +26,6 @@ wtp-descriptor/bootloader/vendor:Dword:906090
|
||||
wtp-descriptor/bootloader/version:Bstr16:.x171312
|
||||
wtp-descriptor/max-radios:Byte:2
|
||||
|
||||
radio/1/wtp-radio-information:Dword:012
|
||||
radio/2/wtp-radio-information:Dword:013
|
||||
radio/1/wtp-radio-information:Dword:04
|
||||
radio/2/wtp-radio-information:Dword:03
|
||||
|
||||
|
@ -21,7 +21,9 @@ static int run_discovery(struct conn *conn)
|
||||
/*// conn->incomming = mbag_create();*/
|
||||
time_t timer;
|
||||
uint8_t dtype=0;
|
||||
|
||||
mlist_t discovery_results;
|
||||
struct sockaddr_storage from;
|
||||
|
||||
conn->capwap_state = CAPWAP_STATE_DISCOVERY;
|
||||
|
||||
|
||||
@ -35,14 +37,15 @@ static int run_discovery(struct conn *conn)
|
||||
|
||||
timer = cw_timer_start(0);
|
||||
|
||||
|
||||
|
||||
discovery_results = mlist_create(NULL,NULL,sizeof(void*));
|
||||
while (!cw_timer_timeout(timer)
|
||||
&& conn->capwap_state == CAPWAP_STATE_DISCOVERY) {
|
||||
int rc;
|
||||
char addr_str[SOCK_ADDR_BUFSIZE];
|
||||
/*mavl_del_all(conn->incomming);*/
|
||||
|
||||
rc = cw_read_from(conn);
|
||||
|
||||
rc = cw_read_from(conn, &from);
|
||||
if (rc<0) {
|
||||
if (errno==EAGAIN)
|
||||
continue;
|
||||
@ -50,9 +53,12 @@ static int run_discovery(struct conn *conn)
|
||||
cw_log(LOG_ERROR,"Error reading messages: %s",strerror(errno));
|
||||
break;
|
||||
}
|
||||
cw_dbg(DBG_INFO,"Received Discovery Response from %s", sock_addr2str(&from,addr_str));
|
||||
mlist_append_ptr(discovery_results,conn->remote_cfg);
|
||||
conn->remote_cfg=cw_ktv_create();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
mbag_t discs;
|
||||
discs = mbag_get_mavl(conn->remote, CW_ITEM_DISCOVERIES);
|
||||
|
Reference in New Issue
Block a user