BIO abstractions for configuring file descriptors.
More...
#include <freeradius-devel/server/cf_parse.h>
#include <freeradius-devel/server/tmpl.h>
#include <freeradius-devel/util/perm.h>
#include <freeradius-devel/bio/fd_priv.h>
Go to the source code of this file.
|
static int | client_transport_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| Parse "transport" and then set the subconfig.
|
|
static int | common_transport_parse (UNUSED TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule, fr_table_ptr_sorted_t const *transport_table, size_t transport_table_len) |
| Parse "transport" and then set the subconfig.
|
|
static int | mode_parse (UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule) |
|
static int | server_transport_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| Parse "transport" and then set the subconfig.
|
|
BIO abstractions for configuring file descriptors.
- Id
- 2786f0f76ea3fe506835d49f19d26fc0ba380221
- Copyright
- 2024 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file fd_config.c.
◆ client_transport_parse()
static int client_transport_parse |
( |
TALLOC_CTX * |
ctx, |
|
|
void * |
out, |
|
|
void * |
parent, |
|
|
CONF_ITEM * |
ci, |
|
|
conf_parser_t const * |
rule |
|
) |
| |
|
static |
Parse "transport" and then set the subconfig.
Definition at line 220 of file fd_config.c.
◆ common_transport_parse()
Parse "transport" and then set the subconfig.
Definition at line 58 of file fd_config.c.
◆ mode_parse()
◆ server_transport_parse()
static int server_transport_parse |
( |
TALLOC_CTX * |
ctx, |
|
|
void * |
out, |
|
|
void * |
parent, |
|
|
CONF_ITEM * |
ci, |
|
|
conf_parser_t const * |
rule |
|
) |
| |
|
static |
Parse "transport" and then set the subconfig.
Definition at line 374 of file fd_config.c.
◆ client_file_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_POINTER(_name, _type, _flags, _res_p)
conf_parser_t which parses a single CONF_PAIR producing a single global result
@ CONF_FLAG_SUBSECTION
Instead of putting the information into a configuration structure, the configuration file routines MA...
static const conf_parser_t client_file_sub_config[]
Definition at line 191 of file fd_config.c.
◆ client_file_sub_config
Initial value:= {
}
int cf_parse_permissions(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
Generic function for resolving permissions to a mode-t.
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
#define FR_CONF_OFFSET_FLAGS(_name, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
@ CONF_FLAG_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
Configuration for sockets.
static int mode_parse(UNUSED TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
Definition at line 181 of file fd_config.c.
◆ client_tcp_config
Initial value:= {
}
static const conf_parser_t client_tcp_sub_config[]
Definition at line 175 of file fd_config.c.
◆ client_tcp_sub_config
Initial value:= {
}
#define FR_CONF_OFFSET_IS_SET(_name, _type, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct,...
#define FR_CONF_OFFSET_TYPE_FLAGS(_name, _type, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
@ FR_TYPE_IPV4_ADDR
32 Bit IPv4 Address.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_IPV6_ADDR
128 Bit IPv6 Address.
@ FR_TYPE_COMBO_IP_ADDR
IPv4 or IPv6 address depending on length.
Definition at line 152 of file fd_config.c.
◆ client_transport_names
Initial value:= {
}
#define L(_str)
Helper for initialising arrays of string literals.
static conf_parser_t const client_file_config[]
static conf_parser_t const client_udp_config[]
static conf_parser_t const client_unix_config[]
static conf_parser_t const client_tcp_config[]
Definition at line 209 of file fd_config.c.
◆ client_transport_names_len
◆ client_udp_config
Initial value:= {
}
static const conf_parser_t client_udp_sub_config[]
Definition at line 125 of file fd_config.c.
◆ client_udp_sub_config
◆ client_udp_unconnected_config
Initial value:= {
}
static const conf_parser_t client_udp_unconnected_sub_config[]
Definition at line 145 of file fd_config.c.
◆ client_udp_unconnected_sub_config
◆ client_unix_config
Initial value:= {
}
static const conf_parser_t client_unix_sub_config[]
Definition at line 203 of file fd_config.c.
◆ client_unix_sub_config
◆ fr_bio_fd_client_config
Initial value:= {
}
static int client_transport_parse(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule)
Parse "transport" and then set the subconfig.
Definition at line 256 of file fd_config.c.
◆ fr_bio_fd_server_config
Initial value:= {
}
static int server_transport_parse(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule)
Parse "transport" and then set the subconfig.
Definition at line 400 of file fd_config.c.
◆ mode_names
Initial value:= {
{
L(
"read-only"), O_RDONLY },
{
L(
"read-write"), O_RDWR },
}
Definition at line 31 of file fd_config.c.
◆ mode_names_len
◆ server_file_config
Initial value:= {
}
static const conf_parser_t server_file_sub_config[]
Definition at line 327 of file fd_config.c.
◆ server_file_sub_config
◆ server_peercred_config
Initial value:= {
}
int cf_parse_gid(TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
Generic function for resolving GID strings to uid_t values.
int cf_parse_uid(TALLOC_CTX *ctx, void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule)
Generic function for resolving UID strings to uid_t values.
Definition at line 333 of file fd_config.c.
◆ server_tcp_config
Initial value:= {
}
static const conf_parser_t server_tcp_sub_config[]
Definition at line 311 of file fd_config.c.
◆ server_tcp_sub_config
◆ server_transport_names
Initial value:= {
}
static conf_parser_t const server_unix_config[]
static conf_parser_t const server_file_config[]
static conf_parser_t const server_udp_config[]
static conf_parser_t const server_tcp_config[]
Definition at line 363 of file fd_config.c.
◆ server_transport_names_len
◆ server_udp_config
Initial value:= {
}
static const conf_parser_t server_udp_sub_config[]
Definition at line 288 of file fd_config.c.
◆ server_udp_sub_config
◆ server_unix_config
Initial value:= {
}
static const conf_parser_t server_unix_sub_config[]
Definition at line 354 of file fd_config.c.
◆ server_unix_sub_config
Initial value:= {
}
static const conf_parser_t server_peercred_config[]
Definition at line 340 of file fd_config.c.