OpenDNSSEC-signer  2.1.7
Data Structures | Macros | Typedefs | Functions
ixfr.h File Reference
#include "config.h"
#include <ldns/ldns.h>
#include "locks.h"
#include "zone.h"

Go to the source code of this file.

Data Structures

struct  part_struct
 
struct  ixfr_struct
 

Macros

#define IXFR_MAX_PARTS   3
 

Typedefs

typedef struct part_struct part_type
 
typedef struct ixfr_struct ixfr_type
 

Functions

ixfr_typeixfr_create (void)
 
void ixfr_add_rr (ixfr_type *ixfr, ldns_rr *rr)
 
void ixfr_del_rr (ixfr_type *ixfr, ldns_rr *rr)
 
int ixfr_print (FILE *fd, ixfr_type *ixfr)
 
void ixfr_purge (ixfr_type *ixfr, char const *zonename)
 
void ixfr_cleanup (ixfr_type *ixfr)
 

Macro Definition Documentation

◆ IXFR_MAX_PARTS

#define IXFR_MAX_PARTS   3

Definition at line 44 of file ixfr.h.

Typedef Documentation

◆ ixfr_type

typedef struct ixfr_struct ixfr_type

Definition at line 1 of file ixfr.h.

◆ part_type

typedef struct part_struct part_type

Domain name database.

Definition at line 1 of file ixfr.h.

Function Documentation

◆ ixfr_add_rr()

void ixfr_add_rr ( ixfr_type ixfr,
ldns_rr *  rr 
)

Add +RR to ixfr journal.

Parameters
[in]ixfrjournal
[in]rr+RR

Add +RR to ixfr journal.

Definition at line 107 of file ixfr.c.

References ixfr().

Referenced by rrset_diff().

◆ ixfr_cleanup()

void ixfr_cleanup ( ixfr_type ixfr)

Cleanup the ixfr journal.

Parameters
[in]ixfrjournal

Cleanup the ixfr journal.

Definition at line 279 of file ixfr.c.

References ixfr(), and IXFR_MAX_PARTS.

Referenced by zone_cleanup().

◆ ixfr_create()

ixfr_type* ixfr_create ( void  )

Create a new ixfr journal.

Parameters
[in]zonezone reference
Returns
ixfr_type* ixfr

Create a new ixfr journal.

Definition at line 91 of file ixfr.c.

References ixfr_struct::ixfr_lock.

◆ ixfr_del_rr()

void ixfr_del_rr ( ixfr_type ixfr,
ldns_rr *  rr 
)

Add -RR to ixfr journal.

Parameters
[in]ixfrjournal
[in]rr-RR

Add -RR to ixfr journal.

Definition at line 132 of file ixfr.c.

References ixfr().

Referenced by namedb_wipe_denial(), rrset_diff(), and rrset_drop_rrsigs().

◆ ixfr_print()

int ixfr_print ( FILE *  fd,
ixfr_type ixfr 
)

Print the ixfr journal.

Parameters
[in]fdfile descriptor
[in]ixfrjournal

Print the ixfr journal.

Definition at line 216 of file ixfr.c.

References ixfr().

◆ ixfr_purge()

void ixfr_purge ( ixfr_type ixfr,
char const *  zonename 
)

Purge the ixfr journal.

Parameters
[in]ixfrjournal

Purge the ixfr journal.

Definition at line 239 of file ixfr.c.

References ixfr().