|
Electroneum
|

Go to the source code of this file.
Classes | |
| struct | acl_list |
| struct | acl_addr |
Enumerations | |
| enum | acl_access { acl_deny = 0, acl_refuse, acl_deny_non_local, acl_refuse_non_local, acl_allow, acl_allow_snoop, acl_allow_setrd } |
Functions | |
| struct acl_list * | acl_list_create (void) |
| void | acl_list_delete (struct acl_list *acl) |
| int | acl_list_apply_cfg (struct acl_list *acl, struct config_file *cfg, struct views *v) |
| enum acl_access | acl_get_control (struct acl_addr *acl) |
| struct acl_addr * | acl_addr_lookup (struct acl_list *acl, struct sockaddr_storage *addr, socklen_t addrlen) |
| size_t | acl_list_get_mem (struct acl_list *acl) |
This file keeps track of the list of clients that are allowed to access the server.
Definition in file acl_list.h.
| enum acl_access |
Enumeration of access control options for an address range. Allow or deny access.
Definition at line 54 of file acl_list.h.
| struct acl_addr* acl_addr_lookup | ( | struct acl_list * | acl, |
| struct sockaddr_storage * | addr, | ||
| socklen_t | addrlen | ||
| ) |
Lookup address to see its acl structure
| acl | structure for address storage. |
| addr | address to check |
| addrlen | length of addr. |
| enum acl_access acl_get_control | ( | struct acl_addr * | acl | ) |
Lookup access control status for acl structure.
| acl | structure for acl storage. |
| int acl_list_apply_cfg | ( | struct acl_list * | acl, |
| struct config_file * | cfg, | ||
| struct views * | v | ||
| ) |
Process access control config.
| acl | where to store. |
| cfg | config options. |
| v | views structure |
| struct acl_list* acl_list_create | ( | void | ) |
Create acl structure
| void acl_list_delete | ( | struct acl_list * | acl | ) |
Delete acl structure.
| acl | to delete. |
| size_t acl_list_get_mem | ( | struct acl_list * | acl | ) |
Get memory used by acl structure.
| acl | structure for address storage. |