proto_arp_ethernet_t const *inst = talloc_get_type_abort_const(li->app_io_instance, proto_arp_ethernet_t);
proto_arp_ethernet_thread_t *thread = talloc_get_type_abort(li->thread_instance, proto_arp_ethernet_thread_t);
- CONF_ITEM *ci;
char const *filter;
char *our_filter = NULL;
li->fd = thread->pcap->fd;
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
+ fr_assert(cf_parent(inst->cs) != NULL); /* listen { ... } */
thread->name = talloc_asprintf(thread, "arp on interface %s", inst->interface);
return 0;
inst->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
inst->name = fr_app_io_socket_name(inst, &proto_control_tcp,
NULL, 0,
&inst->ipaddr, inst->port);
thread->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = fr_app_io_socket_name(thread, &proto_dhcpv4_udp,
NULL, 0,
&inst->ipaddr, inst->port,
thread->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = fr_app_io_socket_name(thread, &proto_dhcpv6_udp,
NULL, 0,
&inst->ipaddr, inst->port,
ipaddr.af = AF_INET;
li->app_io_addr = fr_app_io_socket_addr(li, IPPROTO_UDP, &ipaddr, 0);
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = talloc_typed_asprintf(thread, "radius_load from filename %s", inst->filename ? inst->filename : "none");
thread->parent = talloc_parent(li);
thread->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = fr_app_io_socket_name(thread, &proto_radius_tcp,
NULL, 0,
&inst->ipaddr, inst->port,
thread->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = fr_app_io_socket_name(thread, &proto_radius_udp,
NULL, 0,
&inst->ipaddr, inst->port,
}
}
- ci = cf_parent(inst->cs); /* listen { ... } */
- fr_assert(ci != NULL);
- ci = cf_parent(ci);
- fr_assert(ci != NULL);
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
server_cs = cf_item_to_section(ci);
thread->sockfd = sockfd;
+ fr_assert((cf_parent(inst->cs) != NULL) && (cf_parent(cf_parent(inst->cs)) != NULL)); /* listen { ... } */
+
thread->name = fr_app_io_socket_name(thread, &proto_vmps_udp,
NULL, 0,
&inst->ipaddr, inst->port,