actube/src/mod/cisco/cisco_out_ap_timesync.c
7u83@mail.ru f4ebe841a5 renamed capwap directory to cw.
FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
2016-03-03 19:46:20 +00:00

13 lines
283 B
C

#include <time.h>
#include "cisco.h"
#include "cw/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);
}