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_datainfra_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()