From 925f5ecb3b1c4cc05f0a74b6d6fc5a0edee34746 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 26 Jul 2014 22:28:52 +0000 Subject: [PATCH] not needed anymore FossilOrigin-Name: fe1ef1e8dba2b50d30a325412e76202d2657b8d5d800c283ddc9e8dd90a4e5b7 --- src/capwap/capwap_parse_ctrlhdr.c | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/capwap/capwap_parse_ctrlhdr.c diff --git a/src/capwap/capwap_parse_ctrlhdr.c b/src/capwap/capwap_parse_ctrlhdr.c deleted file mode 100644 index 788f5c97..00000000 --- a/src/capwap/capwap_parse_ctrlhdr.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - 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" - -int capwap_parse_ctrlhdr(struct capwap_ctrlhdr * ch,uint8_t * msg, int len) -{ - if (len<8) - return 0; - - uint32_t val; - ch->msgtype = ntohl(*((uint32_t*)(msg)))-CWIANA_ENTERPRISE_NUMBER*256; - val = ntohl(*((uint32_t*)(msg+4))); - ch->seqnum = CW_GET_DWORD_BITS(val,0,8); - ch->msgelemslen=CW_GET_DWORD_BITS(val,8,16)-3; - ch->flags=CW_GET_DWORD_BITS(val,24,8); - ch->msgelems=msg+8; - - if (8+ch->msgelemslen != len) - { - return 0; - } - return 1; -} - -