Moved Cisco AC DEscriptor to mod/cisco
FossilOrigin-Name: 81866be93b11d3a686a2611244e5fcf3b2e23ffa6087057aeb1827959d458cdc
This commit is contained in:
parent
546c3ce340
commit
d9cb288480
@ -145,7 +145,6 @@ CAPWAPOBJS= \
|
||||
cw_out_generic.o \
|
||||
cw_out_ac_descriptor.o \
|
||||
cw_out_wtp_descriptor.o \
|
||||
cw_out_cisco_ac_descriptor.o \
|
||||
cw_in_cisco_image_identifier.o\
|
||||
cw_out_radio_operational_state.o\
|
||||
cw_in_ac_descriptor.o\
|
||||
|
@ -3,7 +3,8 @@ OBJS=\
|
||||
mod_cisco_ac.o \
|
||||
cisco_actions_ac.o \
|
||||
cisco_out_ap_timesync.o \
|
||||
cisco_in_wtp_descriptor.o
|
||||
cisco_in_wtp_descriptor.o \
|
||||
cisco_out_ac_descriptor.o
|
||||
|
||||
|
||||
NAME=libcisco.a
|
||||
|
@ -74,7 +74,8 @@ static cw_action_out_t actions_out[]={
|
||||
|
||||
/* Message Discovery Response */
|
||||
|
||||
/* Discovery Response AC Descriptor */
|
||||
/* Cisco AP Timesync - Important to get the WTP a DTLS
|
||||
* connection established*/
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
|
||||
.item_id = CW_ITEM_AC_TIMESTAMP,
|
||||
@ -83,6 +84,16 @@ static cw_action_out_t actions_out[]={
|
||||
.out = cisco_out_ap_timesync,
|
||||
.mand = 1
|
||||
}
|
||||
,
|
||||
/* Discovery Response AC Descriptor */
|
||||
{
|
||||
.msg_id = CW_MSG_DISCOVERY_RESPONSE,
|
||||
.item_id = CW_ITEM_AC_DESCRIPTOR,
|
||||
.elem_id = CW_ELEM_AC_DESCRIPTOR,
|
||||
.out = cw_out_cisco_ac_descriptor,
|
||||
.mand = 1
|
||||
}
|
||||
|
||||
|
||||
,
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
#include "log.h"
|
||||
#include "conn.h"
|
||||
#include "capwap/log.h"
|
||||
#include "capwap/conn.h"
|
||||
|
||||
#include "mbag.h"
|
||||
#include "capwap_items.h"
|
||||
#include "capwap.h"
|
||||
#include "capwap/mbag.h"
|
||||
#include "capwap/capwap_items.h"
|
||||
#include "capwap/capwap.h"
|
||||
|
||||
|
||||
int cw_out_cisco_ac_descriptor(struct conn *conn,struct cw_action_out * a,uint8_t *dst)
|
||||
int cisco_out_ac_descriptor(struct conn *conn,struct cw_action_out * a,uint8_t *dst)
|
||||
{
|
||||
|
||||
uint8_t *d = dst+4;
|
||||
|
@ -43,6 +43,8 @@ static int detect(struct conn *conn,const uint8_t *rawmsg, int rawlen,int elems_
|
||||
const uint8_t *elem;
|
||||
|
||||
|
||||
/* To detect a Cisco AP we look for any vendor
|
||||
* specific payload Cisco identifier */
|
||||
cw_foreach_elem(elem, elems_ptr, elems_len) {
|
||||
int id = cw_get_elem_id(elem);
|
||||
if (id==CW_ELEM_VENDOR_SPECIFIC_PAYLOAD){
|
||||
|
Loading…
Reference in New Issue
Block a user