diff --git a/src/mod/cisco/cisco.h b/src/mod/cisco/cisco.h new file mode 100644 index 00000000..570710b0 --- /dev/null +++ b/src/mod/cisco/cisco.h @@ -0,0 +1,12 @@ +#ifndef __CISCO_H +#define __CISCO_H + +#include "capwap/conn.h" +#include "capwap/action.h" + +extern int cisco_out_ap_timesync(struct conn *conn,struct cw_action_out * a,uint8_t *dst); +int cisco_in_wtp_descriptor(struct conn *conn, struct cw_action_in *a, uint8_t * data, + int len, struct sockaddr *from); + + +#endif diff --git a/src/capwap/cw_out_cisco_ap_timesync.c b/src/mod/cisco/cisco_out_ap_timesync.c similarity index 52% rename from src/capwap/cw_out_cisco_ap_timesync.c rename to src/mod/cisco/cisco_out_ap_timesync.c index 60cec051..fa4853d7 100644 --- a/src/capwap/cw_out_cisco_ap_timesync.c +++ b/src/mod/cisco/cisco_out_ap_timesync.c @@ -1,8 +1,10 @@ #include -#include "capwap_cisco.h" +#include "cisco.h" -int cw_out_cisco_ap_timesync(struct conn *conn,struct cw_action_out * a,uint8_t *dst) +#include "capwap/capwap_cisco.h" + +int cisco_out_ap_timesync(struct conn *conn,struct cw_action_out * a,uint8_t *dst) { int l = cw_put_cisco_ap_timesync(dst+10,time(NULL),0); return l + cw_put_elem_vendor_hdr(dst, a->vendor_id, a->elem_id, l);