Moved out from acinfo.c.
Now are macros defined for acinfo_readelem_ac-name and wtpinfo_readelem_ac_name ... FossilOrigin-Name: 94877926e820e6fbed7da9085c1d0ff4caccd5e655eda12ce15078433829ee0c
This commit is contained in:
parent
4359464e0d
commit
5e45a93b42
31
src/capwap/cw_readelem_ac_name.c
Normal file
31
src/capwap/cw_readelem_ac_name.c
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#include "capwap.h"
|
||||
#include "cw_util.h"
|
||||
|
||||
int cw_readelem_ac_name(uint8_t **dst, int type,uint8_t *msgelem, int len)
|
||||
{
|
||||
if (type != CWMSGELEM_AC_NAME)
|
||||
return 0;
|
||||
cw_setstr(dst,msgelem,len);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user