Work on wtp join

FossilOrigin-Name: 6bc5cec137a404301cb7f1089f589c6c03cb24c1b309a6b2f9e8d595a467bc6c
This commit is contained in:
7u83@mail.ru
2018-04-01 10:44:05 +00:00
parent 03a786b530
commit 5b62365285
13 changed files with 84 additions and 55 deletions

View File

@ -135,7 +135,7 @@ strict_capwap = off
# Currently as protocol only capwap is suppert
#
# Defalut:
listen = 192.168.0.14:1027
#listen = 192.168.0.14:1027
# broadcast_listen - Broadcast listen address
# If ommited, the boraadcast listen adresses a determined automatically
@ -145,7 +145,7 @@ listen = 192.168.0.14:1027
# broadcast_listen =
#
broadcast_listen = 192.168.0.255:1027
#broadcast_listen = 192.168.0.255:1027
# use_loopback
# Include loopback interfaces if listen addresses are auto detected

View File

@ -688,7 +688,7 @@ struct wtpman *wtpman_create(int socklistindex, struct sockaddr *srcaddr)
// struct sockaddr *from);
*/
wtpman->conn = conn_create(sockfd, srcaddr, 100);
wtpman->conn->receiver = CW_RECEIVER_AC;
wtpman->conn->role = CW_ROLE_AC;
wtpman->conn->data_sock = socklist[socklistindex].data_sockfd;
sock_copyaddr(&wtpman->conn->data_addr, (struct sockaddr *) &wtpman->conn->addr);