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

@ -190,7 +190,7 @@ static struct cw_MsgDef messages[] = {
{
"Discovery Request",
CAPWAP_MSG_DISCOVERY_REQUEST,
CW_RECEIVER_AC,
CW_ROLE_AC,
discovery_request_states,
discovery_request_elements
},
@ -198,7 +198,7 @@ static struct cw_MsgDef messages[] = {
{
"Discovery Response",
CAPWAP_MSG_DISCOVERY_RESPONSE,
CW_RECEIVER_WTP,
CW_ROLE_WTP,
discovery_response_states,
discovery_response_elements
},

View File

@ -43,10 +43,13 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
return 1;
}
int static setup_cfg(struct conn * conn)
{
int security;
security = cw_setup_dtls(conn,conn->local_cfg,"capwap",CAPWAP_CIPHER);
cw_ktv_set_byte(conn->local_cfg,"ac-descriptor/security",security);
return 0;
}

View File

@ -40,7 +40,7 @@ static struct cw_MsgDef messages[] = {
{
"Discovery Request",
CAPWAP_MSG_DISCOVERY_REQUEST,
CW_RECEIVER_AC,
CW_ROLE_AC,
discovery_request_states,
discovery_request_elements
}

View File

@ -157,14 +157,14 @@ static struct cw_MsgDef messages[] = {
{
NULL, /* name */
CAPWAP_MSG_DISCOVERY_REQUEST, /* type */
CW_RECEIVER_AC,
CW_ROLE_AC,
discovery_request_states,
discovery_request_elements
},
{
NULL, /* name */
CAPWAP_MSG_DISCOVERY_RESPONSE, /* type */
CW_RECEIVER_WTP,
CW_ROLE_WTP,
discovery_response_states,
discovery_response_elements
},