The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
process_types.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: 0f3d8ebdb2c26120de281b456db09e90ce7d8e0e $
20 *
21 * @file src/lib/server/process_types.h
22 * @brief Common types for process modules
23 *
24 * @copyright 2021 The FreeRADIUS server project
25 * @copyright 2021 Network RADIUS SAS (legal@networkradius.com)
26 * @copyright 2025 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
27 */
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include <freeradius-devel/server/virtual_servers.h>
34#include <freeradius-devel/server/pair.h>
35
36/** Common public symbol definition for all process modules
37 */
38typedef struct {
39 module_t common; //!< Common fields for all loadable modules.
40
41 module_method_t process; //!< Process packets
42 virtual_server_compile_t const *compile_list; //!< list of processing sections
43 fr_dict_t const **dict; //!< pointer to local fr_dict_t *
44 fr_dict_attr_t const **packet_type; //!< Request packet types to look for finally sections for.
46
47#ifdef __cplusplus
48}
49#endif
fr_dict_attr_t const ** packet_type
Request packet types to look for finally sections for.
virtual_server_compile_t const * compile_list
list of processing sections
module_t common
Common fields for all loadable modules.
module_method_t process
Process packets.
fr_dict_t const ** dict
pointer to local fr_dict_t *
Common public symbol definition for all process modules.
unlang_action_t(* module_method_t)(unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request)
Module section callback.
Definition module.h:69
Struct exported by a rlm_* module.
Definition module.h:203
Processing sections which are allowed in this virtual server.