The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
proto_radius.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18/*
19 * $Id: b5b95a2fd85550faca7bb5dfa8d4f3a7d0a155bc $
20 *
21 * @file proto_radius.h
22 * @brief Structures for the RADIUS protocol
23 *
24 * @copyright 2018 Alan DeKok (aland@freeradius.org)
25 */
26#include <freeradius-devel/io/master.h>
27#include <freeradius-devel/radius/radius.h>
28
29/** An instance of a proto_radius listen section
30 *
31 */
32typedef struct {
33 fr_io_instance_t io; //!< wrapper for IO abstraction
34
35 uint32_t max_packet_size; //!< for message ring buffer.
36 uint32_t num_messages; //!< for message ring buffer.
37
38 bool tunnel_password_zeros; //!< check for trailing zeroes in Tunnel-Password.
39
40 uint32_t priorities[FR_RADIUS_CODE_MAX]; //!< priorities for individual packets
41
42 char const **allowed_types; //!< names for for 'type = ...'
43 bool allowed[FR_RADIUS_CODE_MAX];
44
45 fr_radius_require_ma_t require_message_authenticator; //!< Require Message-Authenticator in all requests.
46 fr_radius_limit_proxy_state_t limit_proxy_state; //!< Limit Proxy-State to packets containing
47 ///< Message-Authenticator.
@ FR_RADIUS_CODE_MAX
Maximum possible protocol code.
Definition defs.h:53
The master IO instance.
Definition master.h:72
unsigned int uint32_t
uint32_t max_packet_size
for message ring buffer.
char const ** allowed_types
names for for 'type = ...'
fr_radius_limit_proxy_state_t limit_proxy_state
Limit Proxy-State to packets containing Message-Authenticator.
fr_radius_require_ma_t require_message_authenticator
Require Message-Authenticator in all requests.
fr_io_instance_t io
wrapper for IO abstraction
uint32_t num_messages
for message ring buffer.
bool tunnel_password_zeros
check for trailing zeroes in Tunnel-Password.
An instance of a proto_radius listen section.
fr_radius_require_ma_t
Control whether Message-Authenticator is required in Access-Requests.
Definition radius.h:62
fr_radius_limit_proxy_state_t
Control whether Proxy-State is allowed in Access-Requests.
Definition radius.h:76