The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
rcode.c
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
17/*
18 * $Id: c236665d3e695787846894695db798c39b3b0eed $
19 *
20 * @file src/lib/server/rcode.c
21 * @brief Textual descriptions of rcodes.
22 *
23 * Rcodes are used at multiple places in the server. They're usually
24 * used by modules to indicate the end result of processing a request,
25 * but are also used in virtual servers and unlang to determine the
26 * end result of processing unlang snippers.
27 *
28 * @copyright 2018 The FreeRADIUS server project
29 */
30
31RCSID("$Id: c236665d3e695787846894695db798c39b3b0eed $")
32
33#include <freeradius-devel/server/rcode.h>
34
36 { L("disallow"), RLM_MODULE_DISALLOW },
37 { L("fail"), RLM_MODULE_FAIL },
38 { L("handled"), RLM_MODULE_HANDLED },
39 { L("invalid"), RLM_MODULE_INVALID },
40 { L("noop"), RLM_MODULE_NOOP },
41 { L("notfound"), RLM_MODULE_NOTFOUND },
42 { L("ok"), RLM_MODULE_OK },
43 { L("reject"), RLM_MODULE_REJECT },
44 { L("updated"), RLM_MODULE_UPDATED },
45};
#define RCSID(id)
Definition build.h:483
#define L(_str)
Helper for initialising arrays of string literals.
Definition build.h:209
#define NUM_ELEMENTS(_t)
Definition build.h:337
size_t rcode_table_len
Definition rcode.c:46
fr_table_num_sorted_t const rcode_table[]
Definition rcode.c:35
@ RLM_MODULE_INVALID
The module considers the request invalid.
Definition rcode.h:45
@ RLM_MODULE_OK
The module is OK, continue.
Definition rcode.h:43
@ RLM_MODULE_FAIL
Module failed, don't reply.
Definition rcode.h:42
@ RLM_MODULE_DISALLOW
Reject the request (user is locked out).
Definition rcode.h:46
@ RLM_MODULE_REJECT
Immediately reject the request.
Definition rcode.h:41
@ RLM_MODULE_NOTFOUND
User not found.
Definition rcode.h:47
@ RLM_MODULE_UPDATED
OK (pairs modified).
Definition rcode.h:49
@ RLM_MODULE_NOOP
Module succeeded without doing anything.
Definition rcode.h:48
@ RLM_MODULE_HANDLED
The module handled the request, so stop.
Definition rcode.h:44
An element in a lexicographically sorted array of name to num mappings.
Definition table.h:49