From 7b0c3302b43e75fe28f5c34a7395ca26170e3c33 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Thu, 14 Aug 2014 15:17:49 +0000 Subject: [PATCH] Inital commit. FossilOrigin-Name: b3b9b1b223e0a8fdd39b5a3f2fbf846928cd0d7949847948eb96afc7d8a38b33 --- .../cwmsg_addelem_vendor_cisco_ap_timesync.c | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/capwap/cwmsg_addelem_vendor_cisco_ap_timesync.c diff --git a/src/capwap/cwmsg_addelem_vendor_cisco_ap_timesync.c b/src/capwap/cwmsg_addelem_vendor_cisco_ap_timesync.c new file mode 100644 index 00000000..d15a8be0 --- /dev/null +++ b/src/capwap/cwmsg_addelem_vendor_cisco_ap_timesync.c @@ -0,0 +1,28 @@ +/* + This file is part of libcapwap. + + libcapwap is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + libcapwap is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Foobar. If not, see . + +*/ + + +#include "capwap.h" +#include "capwap_cisco.h" + + +void cwmsg_addelem_vendor_cisco_ap_timesync(struct cwmsg * cwmsg) +{ + time_t t = htonl(time(NULL)); + cwmsg_addelem_vendor_specific_payload(cwmsg,CW_VENDOR_ID_CISCO,CWVENDOR_CISCO_AP_TIMESYNC,(uint8_t*)&t,sizeof(t)); +}