From aef7388ce78936d11dd6c04ecdde155294f00fb1 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 14 Mar 2016 23:32:18 +0000 Subject: [PATCH] Inital commit. FossilOrigin-Name: e59d23e61afb226401570f7cc7fa94eaef11d7b8501d927a8af4a002dc5aa9fb --- src/mod/cisco/cisco_in_ac_descriptor.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/mod/cisco/cisco_in_ac_descriptor.c diff --git a/src/mod/cisco/cisco_in_ac_descriptor.c b/src/mod/cisco/cisco_in_ac_descriptor.c new file mode 100644 index 00000000..832d28d8 --- /dev/null +++ b/src/mod/cisco/cisco_in_ac_descriptor.c @@ -0,0 +1,20 @@ + +#include "cw/cw.h" +#include "cw/capwap_items.h" +#include "cw/dbg.h" +#include "cw/mbag.h" +#include "cw/vendors.h" + +int cisco_in_ac_descriptor(struct conn *conn, struct cw_action_in *a, uint8_t * data, + int len, struct sockaddr *from) +{ + static struct cw_descriptor_subelem_def allowed[] = { + {CW_VENDOR_ID_CISCO,0, CW_ITEM_AC_HARDWARE_VERSION, 1024,1}, + {CW_VENDOR_ID_CISCO,1, CW_ITEM_AC_SOFTWARE_VERSION, 1024,1}, + {0,0, NULL,0, 0} + }; + + + return cw_read_ac_descriptor(conn->config,data,len,allowed); + +}