LWAPP stuff.
FossilOrigin-Name: 9a181541b90064bf1bff64428a40f1e7805690bcbb5f7d76927508c753a9f3c2
This commit is contained in:
parent
4f6423345c
commit
94b7209930
19
src/capwap/lw_put_ac_descriptor.c
Normal file
19
src/capwap/lw_put_ac_descriptor.c
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "acinfo.h"
|
||||||
|
#include "lwapp.h"
|
||||||
|
|
||||||
|
int lw_put_ac_descriptor(uint8_t * dst, struct ac_info * acinfo)
|
||||||
|
{
|
||||||
|
uint8_t *d=dst;
|
||||||
|
d+=lw_put_byte(d,0); /* Cisco MWAR type */
|
||||||
|
|
||||||
|
d+=lw_put_bstr(d,acinfo->hardware_version); /* length must be 4 */
|
||||||
|
d+=lw_put_bstr(d,acinfo->software_version); /* length must be 4 */
|
||||||
|
d+=lw_put_word(d,200);
|
||||||
|
d+=lw_put_word(d,1000);
|
||||||
|
d+=lw_put_word(d,2);
|
||||||
|
d+=lw_put_word(d,2);
|
||||||
|
d+=lw_put_byte(d,acinfo->security);
|
||||||
|
return d-dst;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user