diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-20 12:38:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-21 10:39:59 -0400 |
commit | 33e6a3d75054d9dbb945434d9fe5c3f6be162adb (patch) | |
tree | 793da664683c1d8a25f0f4e1f9b261856773e7d0 /src/or/dnsserv.c | |
parent | a2bd0397ff2388a6e5a09e0cb8253f4dccf63e21 (diff) | |
download | tor-33e6a3d75054d9dbb945434d9fe5c3f6be162adb.tar.gz tor-33e6a3d75054d9dbb945434d9fe5c3f6be162adb.zip |
Add a new type entry_connection_t for entry connections
No fields have moved there yet; for now, it's just a placeholder type.
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 35279c4702..6df581f9b4 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -32,6 +32,7 @@ static void evdns_server_callback(struct evdns_server_request *req, void *data_) { const listener_connection_t *listener = data_; + entry_connection_t *entry_conn; edge_connection_t *conn; int i = 0; struct evdns_server_question *q = NULL; @@ -115,7 +116,8 @@ evdns_server_callback(struct evdns_server_request *req, void *data_) } /* Make a new dummy AP connection, and attach the request to it. */ - conn = edge_connection_new(CONN_TYPE_AP, AF_INET); + entry_conn = entry_connection_new(CONN_TYPE_AP, AF_INET); + conn = ENTRY_TO_EDGE_CONN(entry_conn); conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT; conn->is_dns_request = 1; @@ -168,11 +170,13 @@ evdns_server_callback(struct evdns_server_request *req, void *data_) int dnsserv_launch_request(const char *name, int reverse) { + entry_connection_t *entry_conn; edge_connection_t *conn; char *q_name; /* Make a new dummy AP connection, and attach the request to it. */ - conn = edge_connection_new(CONN_TYPE_AP, AF_INET); + entry_conn = entry_connection_new(CONN_TYPE_AP, AF_INET); + conn = ENTRY_TO_EDGE_CONN(entry_conn); conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT; if (reverse) |