int sockfd;
uint16_t port = inst->port;
- CONF_ITEM *ci;
fr_assert(!inst->connection);
inst->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
inst->name = fr_app_io_socket_name(inst, &proto_control_tcp,
NULL, 0,
&inst->ipaddr, inst->port);
int sockfd, rcode;
uint16_t port = inst->port;
- CONF_ITEM *ci;
li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
if (sockfd < 0) {
}
}
- /*
- * SUID up is really only needed if interface is set, OR port <1024.
- */
- rad_suid_up();
rcode = fr_socket_bind(sockfd, &inst->ipaddr, &port, inst->interface);
- rad_suid_down();
if (rcode < 0) {
close(sockfd);
PERROR("Failed binding socket");
thread->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = fr_app_io_socket_name(thread, &proto_dhcpv4_udp,
NULL, 0,
&inst->ipaddr, inst->port,
int sockfd, rcode;
uint16_t port = inst->port;
- CONF_ITEM *ci;
li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
if (sockfd < 0) {
thread->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = fr_app_io_socket_name(thread, &proto_dhcpv6_udp,
NULL, 0,
&inst->ipaddr, inst->port,
proto_radius_load_thread_t *thread = talloc_get_type_abort(li->thread_instance, proto_radius_load_thread_t);
fr_ipaddr_t ipaddr;
- CONF_ITEM *ci;
if (socketpair(AF_UNIX, SOCK_STREAM, 0, (int *) &thread->sockets) < 0) {
PERROR("Failed opening /dev/null: %s", fr_syserror(errno));
ipaddr.af = AF_INET;
li->app_io_addr = fr_app_io_socket_addr(li, IPPROTO_UDP, &ipaddr, 0);
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = talloc_typed_asprintf(thread, "radius_load from filename %s", inst->filename ? inst->filename : "none");
thread->parent = talloc_parent(li);
int sockfd;
uint16_t port = inst->port;
- CONF_ITEM *ci;
fr_assert(!thread->connection);
thread->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = fr_app_io_socket_name(thread, &proto_radius_tcp,
NULL, 0,
&inst->ipaddr, inst->port,
int sockfd;
uint16_t port = inst->port;
- CONF_ITEM *ci;
li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
if (sockfd < 0) {
thread->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = fr_app_io_socket_name(thread, &proto_radius_udp,
NULL, 0,
&inst->ipaddr, inst->port,
int sockfd;
uint16_t port = inst->port;
- CONF_ITEM *ci;
li->fd = sockfd = fr_socket_server_udp(&inst->ipaddr, &port, inst->port_name, true);
if (sockfd < 0) {
thread->sockfd = sockfd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
-
thread->name = fr_app_io_socket_name(thread, &proto_vmps_udp,
NULL, 0,
&inst->ipaddr, inst->port,