Can handle unknown messages

FossilOrigin-Name: 189731bb4dae23486840ea02ba738a3eb8bad3dd58b184a89e9d3a5fbef3ff00
This commit is contained in:
7u83@mail.ru
2018-02-26 22:14:32 +00:00
parent 4dd1c09b31
commit f0e838de0a
4 changed files with 25 additions and 11 deletions

View File

@ -101,7 +101,8 @@ static cw_msgdef_t messages[] = {
/* Discovery Request Message*/
{
.name = "Discovery Request",
.type = CAPWAP_MSG_DISCOVERY_REQUEST,
// .type = CAPWAP_MSG_DISCOVERY_REQUEST,
.type = 7,
.states = (int[]){CAPWAP_STATE_DISCOVERY,0},
.elements = (cw_msgelemprops_t []){
{&_DISCOVERY_TYPE,1},
@ -132,7 +133,7 @@ static cw_msgdef_t messages[] = {
struct cw_MsgSet * cisco_register_msg_set(struct cw_MsgSet * set, int mode){
struct cw_MsgSet * capwap_register_msg_set(struct cw_MsgSet * set, int mode){
if (mode != CW_MOD_MODE_CAPWAP)
return NULL;
cw_msgset_add(set,messages);