All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vqp.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 #ifndef FR_VQP_H
17 #define FR_VQP_H
18 
19 /**
20  * $Id: 857ec214c4848d08568b85a6bb3f0de1adf668c8 $
21  *
22  * @file proto_vmps/vqp.h
23  * @brief Structures and prototypes for Cisco's VLAN Query Protocol
24  *
25  * @copyright 2007 The FreeRADIUS server project
26  * @copyright 2007 Alan DeKok <aland@deployingradius.com>
27  */
28 
29 RCSIDH(vqp_h, "$Id: 857ec214c4848d08568b85a6bb3f0de1adf668c8 $")
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
36 int vqp_send(RADIUS_PACKET *packet);
37 int vqp_decode(RADIUS_PACKET *packet);
38 int vqp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original);
39 ssize_t vqp_packet_size(uint8_t const *data, size_t data_len);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* FR_VQP_H */
static int sockfd
Definition: radclient.c:59
#define RCSIDH(h, id)
Definition: build.h:136
RADIUS_PACKET * vqp_recv(int sockfd)
Definition: vqp.c:114
int vqp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original)
Definition: vqp.c:374
uint8_t data[]
Definition: eap_pwd.h:625
ssize_t vqp_packet_size(uint8_t const *data, size_t data_len)
See how big of a packet is in the buffer.
Definition: vqp.c:551
int vqp_decode(RADIUS_PACKET *packet)
Definition: vqp.c:247
int vqp_send(RADIUS_PACKET *packet)
Definition: vqp.c:229