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_type * | ixfr_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.

Referenced by ixfr_cleanup().

## Typedef Documentation

## ixfr_type

typedef struct ixfr_struct ixfr_type

Definition at line 39 of file ixfr.h.

## part_type

typedef struct part_struct part_type

Domain name database.

Definition at line 38 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] | ixfr | journal
  [in] | rr | +RR

Add +RR to ixfr journal.

Definition at line 107 of file ixfr.c.

References ixfr_struct::part, and part_struct::plus.

Referenced by rrset_diff().

## ixfr_cleanup()

void ixfr_cleanup | ( | ixfr_type * | ixfr | ) |

Cleanup the ixfr journal.

Parameters

  [in] | ixfr | journal

Cleanup the ixfr journal.

Definition at line 279 of file ixfr.c.

References IXFR_MAX_PARTS.

Referenced by zone_cleanup().

## ixfr_create()

ixfr_type* ixfr_create | ( | void |  | ) |

Create a new ixfr journal.

Parameters

  [in] | zone | zone 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] | ixfr | journal
  [in] | rr | -RR

Add -RR to ixfr journal.

Definition at line 132 of file ixfr.c.

References part_struct::min, and ixfr_struct::part.

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] | fd | file descriptor
  [in] | ixfr | journal

Print the ixfr journal.

Definition at line 216 of file ixfr.c.

## ixfr_purge()

void ixfr_purge | ( | ixfr_type * | ixfr,
|  | char const * | zonename
| ) |  |

Purge the ixfr journal.

Parameters

  [in] | ixfr | journal

Purge the ixfr journal.

Definition at line 239 of file ixfr.c.

References ixfr_struct::part, part_struct::soamin, and part_struct::soaplus.