OpenDNSSEC-signer  1.4.8.2
Functions
acl.c File Reference
#include "config.h"
#include "shared/log.h"
#include "shared/file.h"
#include "shared/status.h"
#include "wire/acl.h"
Include dependency graph for acl.c:

Go to the source code of this file.

Functions

int acl_parse_family (const char *a)
 
acl_typeacl_create (allocator_type *allocator, char *address, char *port, char *tsig_name, tsig_type *tsig)
 
int addr2ip (struct sockaddr_storage addr, char *ip, size_t len)
 
acl_typeacl_find (acl_type *acl, struct sockaddr_storage *addr, tsig_rr_type *trr)
 
void acl_cleanup (acl_type *acl, allocator_type *allocator)
 

Function Documentation

void acl_cleanup ( acl_type acl,
allocator_type allocator 
)

Clean up ACL.

Definition at line 464 of file acl.c.

References acl_cleanup(), acl_struct::address, allocator_deallocate(), and acl_struct::next.

Referenced by acl_cleanup(), acl_create(), dnsin_cleanup(), and dnsout_cleanup().

acl_type* acl_create ( allocator_type allocator,
char *  address,
char *  port,
char *  tsig_name,
tsig_type tsig 
)
acl_type* acl_find ( acl_type acl,
struct sockaddr_storage *  addr,
tsig_rr_type trr 
)

Find ACL.

Definition at line 445 of file acl.c.

References acl_struct::address, acl_struct::next, and ods_log_debug().

int acl_parse_family ( const char *  a)

Parse family from address.

Definition at line 104 of file acl.c.

Referenced by acl_create().

int addr2ip ( struct sockaddr_storage  addr,
char *  ip,
size_t  len 
)

Address storage to IP string.

Definition at line 424 of file acl.c.