#include <freeradius-devel/ident.h>
RCSIDH(realms_h, "$Id$")
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define HOME_TYPE_INVALID (0)
#define HOME_TYPE_AUTH (1)
#define HOME_TYPE_ACCT (2)
int port;
int type; /* auth/acct */
-#ifdef WITH_TCP
int proto;
-#endif
int max_connections;
int num_connections; /* protected by proxy mutex */
int max_requests; /* for one connection */
int currently_outstanding;
int message_authenticator;
+ time_t last_packet;
struct timeval revive_time;
struct timeval zombie_period_start;
int zombie_period; /* unresponsive for T, mark it dead */
REALM *realm_find2(const char *name); /* ... with name taken from realm_find */
home_server *home_server_ldb(const char *realmname, home_pool_t *pool, REQUEST *request);
-home_server *home_server_find(fr_ipaddr_t *ipaddr, int port);
+home_server *home_server_find(fr_ipaddr_t *ipaddr, int port, int proto);
#ifdef WITH_COA
home_server *home_server_byname(const char *name, int type);
#endif
#endif
home_pool_t *home_pool_byname(const char *name, int type);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* REALMS_H */