]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/radiusd.h
Added unit-test for ReconnectOnTariffChange property
[stg.git] / projects / rlm_stg / radiusd.h
index 2b93ee3acc136e8aace8696fa0558c8b57f75f05..4cbf4034389c60cce1bb58ba9b3bf45cf2049224 100644 (file)
  *
  */
 
  *
  */
 
-#include <freeradius/ident.h>
-RCSIDH(radiusd_h, "$Id: radiusd.h,v 1.1 2010/08/14 04:13:52 faust Exp $")
+//#include <freeradius/ident.h>
+//RCSIDH(radiusd_h, "$Id: radiusd.h,v 1.1 2010/08/14 04:13:52 faust Exp $")
 
 #include "libradius.h"
 
 #include "libradius.h"
-#include <freeradius/radpaths.h>
-#include "conf.h"
+//#include <freeradius/radpaths.h>
+//#include "conf.h"
 #include "conffile.h"
 #include "event.h"
 
 #include "conffile.h"
 #include "event.h"
 
@@ -100,7 +100,7 @@ typedef struct auth_req REQUEST;
 #endif
 
 #include "stats.h"
 #endif
 
 #include "stats.h"
-#include "realms.h"
+/*#include "realms.h"*/
 
 
 /*
 
 
 /*
@@ -119,7 +119,7 @@ typedef struct radclient {
        char                    *login;
        char                    *password;
        char                    *server;
        char                    *login;
        char                    *password;
        char                    *server;
-       int                     number; /* internal use only */
+       int                     number;
        const CONF_SECTION      *cs;
 #ifdef WITH_STATS
        fr_stats_t              *auth;
        const CONF_SECTION      *cs;
 #ifdef WITH_STATS
        fr_stats_t              *auth;
@@ -130,7 +130,7 @@ typedef struct radclient {
 
 #ifdef WITH_DYNAMIC_CLIENTS
        int                     lifetime;
 
 #ifdef WITH_DYNAMIC_CLIENTS
        int                     lifetime;
-       int                     dynamic; /* was dynamically defined */
+       int                     dynamic;
        time_t                  created;
        time_t                  last_new_client;
        char                    *client_server;
        time_t                  created;
        time_t                  last_new_client;
        char                    *client_server;
@@ -169,6 +169,9 @@ typedef enum RAD_LISTEN_TYPE {
        RAD_LISTEN_MAX
 } RAD_LISTEN_TYPE;
 
        RAD_LISTEN_MAX
 } RAD_LISTEN_TYPE;
 
+#if defined(FREE_BSD) || defined(FREE_BSD5)
+#include <sys/time.h>
+#endif
 
 /*
  *     For listening on multiple IP's and ports.
 
 /*
  *     For listening on multiple IP's and ports.