08f7697ccc
WTP cann connect to a WLC and wait for and dump config update requests. FossilOrigin-Name: 5b69ac4d9fd9f9a54395fe24de3456fff3bb76458d64c863d3cb7245dbda629c
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
#ifndef __CWMSG_H
|
|
#define __CWMSG_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "radioinfo.h"
|
|
#include "acinfo.h"
|
|
#include "wtpinfo.h"
|
|
|
|
struct cwmsg{
|
|
uint8_t * buffer;
|
|
uint8_t * trnsprthdr;
|
|
uint8_t * ctrlhdr;
|
|
uint8_t * msgelems;
|
|
int pos;
|
|
int flags;
|
|
int hlen;
|
|
int rid;
|
|
int seqnum;
|
|
int type;
|
|
int capwap_mode;
|
|
};
|
|
|
|
struct conn;
|
|
|
|
extern void cwmsg_init(struct cwmsg * cwmsg, uint8_t *buffer, int type, int seqnum, struct radioinfo * radioinfo);
|
|
//int cwmsg_send(struct cwmsg * cwmsg, int seqnum, int rid, struct conn * conn);
|
|
//
|
|
extern void cwmsg_addelem(struct cwmsg *msg,int type, const uint8_t *elem, int len);
|
|
extern void cwmsg_vaddelem(struct cwmsg *msg,int type, ...);
|
|
|
|
extern void cwmsg_addelem_ac_descriptor(struct cwmsg *msg,struct ac_info * acinfo,struct wtpinfo * wtpinfo);
|
|
extern void cwmsg_addelem_ac_timestamp(struct cwmsg *msg);
|
|
|
|
|
|
extern void cwmsg_init_echo_request(struct cwmsg * cwmsg,uint8_t *buffer,struct conn * conn, struct radioinfo * radioinfo);
|
|
extern void cwmsg_addelem_mtu_discovery_padding(struct cwmsg * msg, struct conn* conn);
|
|
extern void cwmsg_addelem_image_identifier(struct cwmsg *msg,uint32_t vendor_id,uint8_t *img, int len);
|
|
|
|
//extern void cwmsg_addelem_radio_operational_state(struct cwmsg * cwmsg, struct radioinfo * ri);
|
|
|
|
extern void cwmsg_addelem_vendor_cisco_mwar_addr(struct cwmsg *msg, struct conn *conn);
|
|
|
|
|
|
#endif
|