/[radius]/radius/radiusd/radiusd.c
ViewVC logotype

Diff of /radius/radiusd/radiusd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.116 by gray, Fri Apr 18 05:27:10 2003 UTC revision 1.117 by gray, Fri Apr 25 22:49:58 2003 UTC
# Line 85  int        debug_flag; /* can be raised Line 85  int        debug_flag; /* can be raised
85  int        log_mode;  int        log_mode;
86    
87  static int foreground; /* Stay in the foreground */  static int foreground; /* Stay in the foreground */
88  static int spawn_flag;  int spawn_flag;
89    
90  int use_dbm = 0;  int use_dbm = 0;
91  int auth_detail = 0;  int auth_detail = 0;
# Line 324  common_init() Line 324  common_init()
324    
325          radiusd_pid = getpid();          radiusd_pid = getpid();
326          radius_input = input_create();          radius_input = input_create();
         input_register_method(radius_input, "udp",  
                               udp_input_handler,  
                               udp_input_close,  
                               udp_input_cmp);  
327          input_register_method(radius_input, "rpp",          input_register_method(radius_input, "rpp",
328                                rpp_input_handler,                                rpp_input_handler,
329                                rpp_input_close,                                rpp_input_close,
330                                NULL);                                NULL);
331            input_register_method(radius_input, "udp",
332                                  udp_input_handler,
333                                  udp_input_close,
334                                  udp_input_cmp);
335  #ifdef HAVE_SETVBUF  #ifdef HAVE_SETVBUF
336          setvbuf(stdout, NULL, _IOLBF, 0);          setvbuf(stdout, NULL, _IOLBF, 0);
337  #endif  #endif
# Line 1131  struct cfg_stmt acct_stmt[] = { Line 1131  struct cfg_stmt acct_stmt[] = {
1131          { NULL, }          { NULL, }
1132  };  };
1133    
 struct cfg_stmt proxy_stmt[] = {  
         { "max-requests", CS_STMT, NULL,  
           cfg_get_integer, &request_class[R_PROXY].max_requests,  
           NULL, NULL },  
         { "request-cleanup-delay", CS_STMT, NULL,  
           cfg_get_integer, &request_class[R_PROXY].cleanup_delay,  
           NULL, NULL },  
         { NULL, }  
 };  
   
1134  struct cfg_stmt config_syntax[] = {  struct cfg_stmt config_syntax[] = {
1135          { "option", CS_BLOCK, NULL, NULL, NULL, option_stmt, NULL },          { "option", CS_BLOCK, NULL, NULL, NULL, option_stmt, NULL },
1136          { "message", CS_BLOCK, NULL, NULL, NULL, message_stmt, NULL },          { "message", CS_BLOCK, NULL, NULL, NULL, message_stmt, NULL },
# Line 1148  struct cfg_stmt config_syntax[] = { Line 1138  struct cfg_stmt config_syntax[] = {
1138            logging_stmt, logging_stmt_end },            logging_stmt, logging_stmt_end },
1139          { "auth", CS_BLOCK, auth_stmt_begin, NULL, NULL, auth_stmt, NULL },          { "auth", CS_BLOCK, auth_stmt_begin, NULL, NULL, auth_stmt, NULL },
1140          { "acct", CS_BLOCK, acct_stmt_begin, NULL, NULL, acct_stmt, NULL  },          { "acct", CS_BLOCK, acct_stmt_begin, NULL, NULL, acct_stmt, NULL  },
         { "proxy", CS_BLOCK, NULL, NULL, NULL, proxy_stmt, NULL  },  
1141          { "rewrite", CS_BLOCK, NULL, NULL, NULL, rewrite_stmt, NULL },          { "rewrite", CS_BLOCK, NULL, NULL, NULL, rewrite_stmt, NULL },
1142          { "filters", CS_BLOCK, filters_stmt_term, NULL, NULL, filters_stmt,          { "filters", CS_BLOCK, filters_stmt_term, NULL, NULL, filters_stmt,
1143            NULL },            NULL },

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26