24 #include <freeradius-devel/io/base.h>
25 #include <freeradius-devel/io/application.h>
26 #include <freeradius-devel/util/syserror.h>
27 #include <freeradius-devel/util/debug.h>
35 char const *interface)
37 char dst_buf[128], src_buf[128];
43 if (dst_ipaddr->
af == AF_INET) {
44 strlcpy(dst_buf,
"*",
sizeof(dst_buf));
47 strlcpy(dst_buf,
"::",
sizeof(dst_buf));
63 app_io->
common.name, src_buf, src_port, dst_buf, dst_port);
73 app_io->
common.name, src_buf, src_port, dst_buf, dst_port, interface);
char const * fr_app_io_socket_name(TALLOC_CTX *ctx, fr_app_io_t const *app_io, fr_ipaddr_t const *src_ipaddr, int src_port, fr_ipaddr_t const *dst_ipaddr, int dst_port, char const *interface)
module_t common
Common fields to all loadable modules.
Public structure describing an I/O path for a protocol.
int fr_ipaddr_is_inaddr_any(fr_ipaddr_t const *ipaddr)
Determine if an address is the INADDR_ANY address for its address family.
static fr_app_io_t app_io
#define FR_SBUFF_OUT(_start, _len_or_end)
size_t strlcpy(char *dst, char const *src, size_t siz)
char * talloc_typed_asprintf(TALLOC_CTX *ctx, char const *fmt,...)
Call talloc vasprintf, setting the type on the new chunk correctly.
ssize_t fr_value_box_print(fr_sbuff_t *out, fr_value_box_t const *data, fr_sbuff_escape_rules_t const *e_rules)
Print one boxed value to a string.
#define fr_box_ipaddr(_val)