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
- 234710471b8e3336d4068af65c9ddf54a69f7baf 
- 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.
◆ DUMP_CAPABILITIES
      
        
          | #define DUMP_CAPABILITIES | ( |  | _phase | ) |  | 
      
 
 
◆ EXIT_WITH_FAILURE
Value:do { \
        ret = EXIT_FAILURE; \
} while (0)
Definition at line 159 of file radiusd.c.
 
 
◆ EXIT_WITH_SUCCESS
Value:do { \
        ret = EXIT_SUCCESS; \
} while (0)
Definition at line 165 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] | tl | 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 189 of file radiusd.c.
 
 
◆ fr_time_sync_event()
◆ main()
      
        
          | int main | ( | int | argc, | 
        
          |  |  | char * | argv[] | 
        
          |  | ) |  |  | 
      
 
Entry point for the daemon. 
Definition at line 225 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 109 of file radiusd.c.
 
 
◆ thread_detach()
  
  | 
        
          | static void thread_detach | ( | UNUSED void * | uctx | ) |  |  | static | 
 
Explicitly cleanup module/xlat resources. 
Definition at line 150 of file radiusd.c.
 
 
◆ thread_instantiate()
Create module and xlat per-thread instances. 
Definition at line 133 of file radiusd.c.
 
 
◆ usage()
◆ fr_time_sync_ev
◆ program
      
        
          | char const* program = NULL | 
      
 
 
◆ radius_pid
◆ radiusd_version