return client_find(NULL, ipaddr, ipproto);
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_control_tcp_t *inst = talloc_get_type_abort(instance, proto_control_tcp_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_control_tcp;
fr_app_io_t proto_control_tcp = {
.magic = RLM_MODULE_INIT,
.name = "control_tcp",
.config = tcp_listen_config,
.inst_size = sizeof(proto_control_tcp_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.default_message_size = 4096,
return &inst->radclient;
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_control_unix_t *inst = talloc_get_type_abort(instance, proto_control_unix_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_control_unix;
fr_app_io_t proto_control_unix = {
.magic = RLM_MODULE_INIT,
.name = "control_unix",
.config = unix_listen_config,
.inst_size = sizeof(proto_control_unix_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.default_message_size = 4096,
return client_find(NULL, ipaddr, ipproto);
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_dhcpv4_udp_t *inst = talloc_get_type_abort(instance, proto_dhcpv4_udp_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_dhcpv4_udp;
fr_app_io_t proto_dhcpv4_udp = {
.magic = RLM_MODULE_INIT,
.name = "dhcpv4_udp",
.config = udp_listen_config,
.inst_size = sizeof(proto_dhcpv4_udp_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.instantiate = mod_instantiate,
return client_find(NULL, ipaddr, ipproto);
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_radius_tcp_t *inst = talloc_get_type_abort(instance, proto_radius_tcp_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_radius_tcp;
fr_app_io_t proto_radius_tcp = {
.magic = RLM_MODULE_INIT,
.name = "radius_tcp",
.config = tcp_listen_config,
.inst_size = sizeof(proto_radius_tcp_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.default_message_size = 4096,
return client_find(NULL, ipaddr, ipproto);
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_radius_udp_t *inst = talloc_get_type_abort(instance, proto_radius_udp_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_radius_udp;
fr_app_io_t proto_radius_udp = {
.magic = RLM_MODULE_INIT,
.name = "radius_udp",
.config = udp_listen_config,
.inst_size = sizeof(proto_radius_udp_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.default_message_size = 4096,
return client_find(NULL, ipaddr, ipproto);
}
-#if 0
-static int mod_detach(void *instance)
-{
- proto_vmps_udp_t *inst = talloc_get_type_abort(instance, proto_vmps_udp_t);
-
- if (inst->sockfd >= 0) close(inst->sockfd);
- inst->sockfd = -1;
-
- return 0;
-}
-#endif
-
extern fr_app_io_t proto_vmps_udp;
fr_app_io_t proto_vmps_udp = {
.magic = RLM_MODULE_INIT,
.name = "vmps_udp",
.config = udp_listen_config,
.inst_size = sizeof(proto_vmps_udp_t),
-// .detach = mod_detach,
.bootstrap = mod_bootstrap,
.instantiate = mod_instantiate,