2014-07-11 22:12:11 +02:00
|
|
|
#ifndef __CWMSG_H
|
|
|
|
#define __CWMSG_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "radioinfo.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;
|
2015-03-14 10:15:12 +01:00
|
|
|
int capwap_mode;
|
2014-07-11 22:12:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct conn;
|
|
|
|
|
2015-04-12 10:18:12 +02:00
|
|
|
/*
|
2014-07-11 22:12:11 +02:00
|
|
|
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);
|
2015-03-19 20:45:03 +01:00
|
|
|
extern void cwmsg_vaddelem(struct cwmsg *msg,int type, ...);
|
2014-08-17 18:41:23 +02:00
|
|
|
|
2015-04-12 10:18:12 +02:00
|
|
|
//extern void cwmsg_addelem_ac_descriptor(struct cwmsg *msg,struct ac_info * acinfo,struct wtpinfo * wtpinfo);
|
2014-08-12 15:48:47 +02:00
|
|
|
extern void cwmsg_addelem_ac_timestamp(struct cwmsg *msg);
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
extern void cwmsg_init_echo_request(struct cwmsg * cwmsg,uint8_t *buffer,struct conn * conn, struct radioinfo * radioinfo);
|
2014-08-15 22:12:02 +02:00
|
|
|
extern void cwmsg_addelem_mtu_discovery_padding(struct cwmsg * msg, struct conn* conn);
|
2014-08-17 18:41:23 +02:00
|
|
|
extern void cwmsg_addelem_image_identifier(struct cwmsg *msg,uint32_t vendor_id,uint8_t *img, int len);
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-03-29 01:55:06 +01:00
|
|
|
//extern void cwmsg_addelem_radio_operational_state(struct cwmsg * cwmsg, struct radioinfo * ri);
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-03-16 02:41:35 +01:00
|
|
|
extern void cwmsg_addelem_vendor_cisco_mwar_addr(struct cwmsg *msg, struct conn *conn);
|
2015-04-12 10:18:12 +02:00
|
|
|
*/
|
2015-03-14 10:15:12 +01:00
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
#endif
|