Main loop of the radius server.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/dependency.h>
#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/server/radmin.h>
#include <freeradius-devel/server/snmp.h>
#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/size.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/tls/base.h>
#include <freeradius-devel/tls/log.h>
#include <freeradius-devel/unlang/base.h>
#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/syserror.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/file.h>
#include <sys/mman.h>
Go to the source code of this file.
Main loop of the radius server.
- Id
- db3870349b6c67a65d4bcc590f3156bbdfb8a108
- Copyright
- 2000-2018 The FreeRADIUS server project
-
1999,2000 Miquel van Smoorenburg (mique.nosp@m.ls@c.nosp@m.istro.nosp@m.n.nl)
-
2000 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
-
2000 Alan Curry (pacma.nosp@m.n-ra.nosp@m.dius@.nosp@m.cqc..nosp@m.com)
-
2000 Jeff Carneal (jeff@.nosp@m.apex.nosp@m..net)
-
2000 Chad Miller (cmill.nosp@m.er@s.nosp@m.urfso.nosp@m.uth..nosp@m.com)
Definition in file radiusd.c.
◆ COPY
◆ DUMP_CAPABILITIES
#define DUMP_CAPABILITIES |
( |
|
_phase | ) |
|
◆ EXIT_WITH_FAILURE
Value:do { \
ret = EXIT_FAILURE; \
} while (0)
Definition at line 158 of file radiusd.c.
◆ EXIT_WITH_SUCCESS
Value:do { \
ret = EXIT_SUCCESS; \
} while (0)
Definition at line 164 of file radiusd.c.
◆ WEXITSTATUS
#define WEXITSTATUS |
( |
|
stat_val | ) |
((unsigned)(stat_val) >> 8) |
◆ WIFEXITED
#define WIFEXITED |
( |
|
stat_val | ) |
(((stat_val) & 255) == 0) |
◆ fr_exit_after()
Encourage the server to exit after a period of time.
- Parameters
-
[in] | el | The main loop. |
[in] | now | Current time. Should be 0, when adding the event. |
[in] | uctx | Pointer to a fr_time_delta_t indicating how long the server should run before exit. |
Definition at line 188 of file radiusd.c.
◆ fr_time_sync_event()
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Entry point for the daemon.
Definition at line 224 of file radiusd.c.
◆ sig_fatal()
static void sig_fatal |
( |
int |
sig | ) |
|
|
static |
◆ talloc_config_set()
Configure talloc debugging features.
- Parameters
-
[in] | config | The main config. |
- Returns
- 1 on config conflict.
- 0 on success.
- -1 on error.
Definition at line 108 of file radiusd.c.
◆ thread_detach()
static void thread_detach |
( |
UNUSED void * |
uctx | ) |
|
|
static |
Explicitly cleanup module/xlat resources.
Definition at line 149 of file radiusd.c.
◆ thread_instantiate()
Create module and xlat per-thread instances.
Definition at line 132 of file radiusd.c.
◆ usage()
◆ fr_time_sync_ev
◆ radius_pid
◆ radiusd_version