djbdnscurve6 45
djbdnscurve6
Loading...
Searching...
No Matches
Macros | Functions | Variables
sipcache.c File Reference
#include "alloc.h"
#include "byte.h"
#include "tai.h"
#include "dns.h"
#include "exit.h"
#include "uint_t.h"
#include "siphash.h"
#include "sipcache.h"
Include dependency graph for sipcache.c:

Go to the source code of this file.

Macros

#define MAXKEYLEN   1000
 
#define MAXDATALEN   1000000
 

Functions

char * cache_get (const char *key, unsigned int keylen, unsigned int *datalen, uint32 *ttl)
 
void cache_set (const char *key, unsigned int keylen, const char *data, unsigned int datalen, uint32 ttl)
 
int cache_init (unsigned int cachesize)
 

Variables

uint64 cache_motion = 0
 

Macro Definition Documentation

◆ MAXDATALEN

#define MAXDATALEN   1000000

Definition at line 42 of file sipcache.c.

◆ MAXKEYLEN

#define MAXKEYLEN   1000

Definition at line 41 of file sipcache.c.

Function Documentation

◆ cache_get()

char * cache_get ( const char *  key,
unsigned int  keylen,
unsigned int *  datalen,
uint32 *  ttl 
)

Definition at line 73 of file sipcache.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cache_init()

int cache_init ( unsigned int  cachesize)

Definition at line 177 of file sipcache.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cache_set()

void cache_set ( const char *  key,
unsigned int  keylen,
const char *  data,
unsigned int  datalen,
uint32  ttl 
)

Definition at line 119 of file sipcache.c.

Here is the caller graph for this function:

Variable Documentation

◆ cache_motion

uint64 cache_motion = 0

Definition at line 10 of file sipcache.c.