catch error, if put_msg finds no handler
FossilOrigin-Name: bcada13e86977fb8e3502d5d580ffe023b9eb350a0a9953f4641634e026c702c
This commit is contained in:
parent
6780eef364
commit
b1c406dcc1
@ -5,8 +5,8 @@
|
|||||||
<Project Name="mod_cipwap" Path="mod_cipwap.project" Active="No"/>
|
<Project Name="mod_cipwap" Path="mod_cipwap.project" Active="No"/>
|
||||||
<Project Name="mod_capwap" Path="mod_capwap.project" Active="No"/>
|
<Project Name="mod_capwap" Path="mod_capwap.project" Active="No"/>
|
||||||
<Project Name="mod_cisco" Path="mod_cisco.project" Active="No"/>
|
<Project Name="mod_cisco" Path="mod_cisco.project" Active="No"/>
|
||||||
<Project Name="libcw" Path="libcw.project" Active="No"/>
|
<Project Name="libcw" Path="libcw.project" Active="Yes"/>
|
||||||
<Project Name="mod_capwap80211" Path="mod_capwap80211.project" Active="Yes"/>
|
<Project Name="mod_capwap80211" Path="mod_capwap80211.project" Active="No"/>
|
||||||
<Project Name="mod_fortinet" Path="mod_fortinet.project" Active="No"/>
|
<Project Name="mod_fortinet" Path="mod_fortinet.project" Active="No"/>
|
||||||
<BuildMatrix>
|
<BuildMatrix>
|
||||||
<WorkspaceConfiguration Name="Debug" Selected="yes">
|
<WorkspaceConfiguration Name="Debug" Selected="yes">
|
||||||
|
@ -75,6 +75,12 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
|
|||||||
data = mlistelem_dataptr(elem);
|
data = mlistelem_dataptr(elem);
|
||||||
handler = cw_msgset_get_elemhandler(conn->msgset,data->proto,data->vendor,data->id);
|
handler = cw_msgset_get_elemhandler(conn->msgset,data->proto,data->vendor,data->id);
|
||||||
/* printf("Elem: %d %d %d %s\n", data->proto, data->vendor, data->id, handler->name);*/
|
/* printf("Elem: %d %d %d %s\n", data->proto, data->vendor, data->id, handler->name);*/
|
||||||
|
if (handler==NULL){
|
||||||
|
cw_log(LOG_ERR,"Can't put message element %d %d %, no handler defined.",
|
||||||
|
data->proto,data->vendor,data->id);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (handler->put == NULL){
|
if (handler->put == NULL){
|
||||||
if (data->mand){
|
if (data->mand){
|
||||||
|
@ -27,7 +27,6 @@ wtp-descriptor/bootloader/version:Bstr16:.x171312
|
|||||||
wtp-descriptor/max-radios:Byte:2
|
wtp-descriptor/max-radios:Byte:2
|
||||||
|
|
||||||
radio/0/wtp-radio-information:Dword:01
|
radio/0/wtp-radio-information:Dword:01
|
||||||
radio/1/wtp-radio-information:Dword:15
|
radio/1/wtp-radio-information:Dword:02
|
||||||
radio/2/wtp-radio-information:Dword:03
|
|
||||||
|
|
||||||
wtp-name:Bstr16:WFAT01
|
wtp-name:Bstr16:WFAT01
|
||||||
|
Loading…
Reference in New Issue
Block a user