Work on wtp join
FossilOrigin-Name: 6bc5cec137a404301cb7f1089f589c6c03cb24c1b309a6b2f9e8d595a467bc6c
This commit is contained in:
@ -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
|
||||
},
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
},
|
||||
|
Reference in New Issue
Block a user