You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef _DNSPROXY_H_
|
|
|
|
#define _DNSPROXY_H_
|
|
|
|
|
|
|
|
#include "process.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int port;
|
|
|
|
int cache;
|
|
|
|
int verify; // bool value
|
|
|
|
int parallel; // bool value
|
|
|
|
int optimistic; // bool value
|
|
|
|
char **bootstrap;
|
|
|
|
char **fallback;
|
|
|
|
char **primary;
|
|
|
|
} dnsproxy;
|
|
|
|
|
|
|
|
dnsproxy* dnsproxy_init(int port);
|
|
|
|
void dnsproxy_dump(char *caption, dnsproxy *info);
|
|
|
|
|
|
|
|
void dnsproxy_add_primary(dnsproxy *info, char *server);
|
|
|
|
void dnsproxy_add_fallback(dnsproxy *info, char *server);
|
|
|
|
void dnsproxy_add_bootstrap(dnsproxy *info, char *server);
|
|
|
|
|
|
|
|
char* dnsproxy_gen_config(dnsproxy *info);
|
|
|
|
|
|
|
|
process* dnsproxy_load(char *caption, dnsproxy *info, char *work_dir, char *file);
|
|
|
|
|
|
|
|
#endif
|