unbound: testcode/unitinfra.c File Reference

unbound 0.1

Functions
unitinfra.c File Reference

Tests the infra functionality. More...

`#include "config.h"`
`#include "testcode/unitmain.h"`
`#include "iterator/iterator.h"`
`#include "services/cache/infra.h"`
`#include "util/config_file.h"`
`#include "util/net_help.h"`

## Functions
static struct infra_data * | infra_lookup_host (struct infra_cache *infra, struct sockaddr_storage *addr, socklen_t addrlen, uint8_t *zone, size_t zonelen, int wr, time_t now, struct infra_key **k)
static void | test_keep_probing (struct infra_cache *slab, struct config_file *cfg, struct sockaddr_storage one, socklen_t onelen, uint8_t *zone, size_t zonelen, time_t *now, int keep_probing, int rtt_max_timeout)
void | infra_test (void)
| test host cache

## Detailed Description

Tests the infra functionality.

## Function Documentation

## ◆ infra_test()

void infra_test | ( | void |  | ) |

test host cache

unit test for infra cache functions

References config_apply_max_rtt(), config_auto_slab_values(), config_create(), config_delete(), infra_data::edns_version, infra_key::entry, config_file::host_ttl, infra_create(), infra_delete(), infra_edns_update(), infra_host(), infra_rtt_update(), infra_set_lame(), ipstrtoaddr(), infra_data::isdnsseclame, infra_data::lame_other, infra_data::lame_type_A, LDNS_RR_TYPE_A, LDNS_RR_TYPE_AAAA, lruhash_entry::lock, infra_data::rec_lame, infra_data::ttl, unit_assert, unit_show_feature(), UNKNOWN_SERVER_NICENESS, and USEFUL_SERVER_TOP_TIMEOUT.

Referenced by main().