|
static int | add_pool_to_realm (realm_config_t *rc, CONF_SECTION *cs, char const *name, home_pool_t **dest, home_type_t server_type, bool do_print) |
|
static size_t | CC_HINT (nonnull) |
|
home_pool_t * | home_pool_byname (char const *name, int type) |
|
static int | home_pool_name_cmp (void const *one, void const *two) |
|
static int | home_server_addr_cmp (void const *one, void const *two) |
|
home_server_t * | home_server_afrom_cs (TALLOC_CTX *ctx, realm_config_t *rc, CONF_SECTION *cs) |
| Alloc a new home server defined by a CONF_SECTION. More...
|
|
home_server_t * | home_server_byname (char const *name, int type) |
|
home_server_t * | home_server_bynumber (int number) |
|
CONF_SECTION * | home_server_cs_afrom_client (CONF_SECTION *client) |
| Fixup a client configuration section to specify a home server. More...
|
|
home_server_t * | home_server_find (fr_ipaddr_t *ipaddr, uint16_t port, int proto) |
|
static void | home_server_free (void *data) |
|
static bool | home_server_insert (home_server_t *home, CONF_SECTION *cs) |
| Insert a new home server into the various internal lookup trees. More...
|
|
home_server_t * | home_server_ldb (char const *realmname, home_pool_t *pool, REQUEST *request) |
|
static int | home_server_name_cmp (void const *one, void const *two) |
|
static int | home_server_number_cmp (void const *one, void const *two) |
|
void | home_server_update_request (home_server_t *home, REQUEST *request) |
|
static void | null_free (UNUSED void *data) |
|
static int | old_realm_config (realm_config_t *rc, CONF_SECTION *cs, REALM *r) |
|
static int | old_server_add (realm_config_t *rc, CONF_SECTION *cs, char const *realm, char const *name, char const *secret, home_pool_type_t ldflag, home_pool_t **pool_p, home_type_t type, char const *server) |
|
static int | pool_check_home_server (UNUSED realm_config_t *rc, CONF_PAIR *cp, char const *name, home_type_t server_type, home_server_t **phome) |
|
static int | pool_peek_type (CONF_SECTION *config, CONF_SECTION *cs) |
|
static int | realm_add (realm_config_t *rc, CONF_SECTION *cs) |
|
REALM * | realm_find (char const *name) |
|
REALM * | realm_find2 (char const *name) |
|
bool | realm_home_server_add (home_server_t *home) |
| Add an already allocate home_server_t to the various trees. More...
|
|
void | realm_home_server_sanitize (home_server_t *home, CONF_SECTION *cs) |
|
static int | realm_name_cmp (void const *one, void const *two) |
|
int | realm_pool_add (home_pool_t *pool, UNUSED CONF_SECTION *cs) |
|
void | realm_pool_free (home_pool_t *pool) |
|
int | realm_realm_add (REALM *r, UNUSED CONF_SECTION *cs) |
|
void | realms_free (void) |
|
int | realms_init (CONF_SECTION *config) |
|
static int | server_pool_add (realm_config_t *rc, CONF_SECTION *cs, home_type_t server_type, bool do_print) |
|
static home_pool_t * | server_pool_alloc (realm_config_t *rc, char const *name, home_pool_type_t type, home_type_t server_type, int num_home_servers) |
|
static ssize_t | xlat_home_server (char **out, size_t outlen, UNUSED void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt) CC_HINT(nonnull) |
| xlat for %{home_server:foo} More...
|
|
static ssize_t | xlat_server_pool (char **out, size_t outlen, UNUSED void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt) CC_HINT(nonnull) |
| xlat for %{home_server_pool:foo} More...
|
|
Fixup a client configuration section to specify a home server.
This is used to create the equivalent CoA home server entry for a client, so that the server can originate CoA messages.
The server section automatically inherits the following fields from the client:
- ipaddr/ipv4addr/ipv6addr
- secret
- src_ipaddr
- Note
- new CONF_SECTION will be allocated in the context of the client, but the client C::ONF_SECTION will not be modified.
- Parameters
-
client | CONF_SECTION to inherit values from. |
- Returns
-
Definition at line 889 of file realms.c.