2010-07-21 12:26:18 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2016-02-27 18:48:19 +01:00
|
|
|
* Copyright (c) 2007-2016, The Tor Project, Inc. */
|
2010-07-21 12:26:18 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file dnsserv.h
|
2010-07-28 17:42:33 +02:00
|
|
|
* \brief Header file for dnsserv.c.
|
2010-07-21 12:26:18 +02:00
|
|
|
**/
|
|
|
|
|
2012-10-12 18:13:10 +02:00
|
|
|
#ifndef TOR_DNSSERV_H
|
|
|
|
#define TOR_DNSSERV_H
|
2010-07-21 12:26:18 +02:00
|
|
|
|
|
|
|
void dnsserv_configure_listener(connection_t *conn);
|
|
|
|
void dnsserv_close_listener(connection_t *conn);
|
2011-07-20 18:55:42 +02:00
|
|
|
void dnsserv_resolved(entry_connection_t *conn,
|
2010-07-21 12:26:18 +02:00
|
|
|
int answer_type,
|
|
|
|
size_t answer_len,
|
|
|
|
const char *answer,
|
|
|
|
int ttl);
|
2011-07-20 18:55:42 +02:00
|
|
|
void dnsserv_reject_request(entry_connection_t *conn);
|
2013-03-18 20:39:11 +01:00
|
|
|
int dnsserv_launch_request(const char *name, int is_reverse,
|
|
|
|
control_connection_t *control_conn);
|
2010-07-21 12:26:18 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|