diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2023-09-10 13:13:11 +0200 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2023-10-18 13:06:04 -0400 |
commit | 1b907d13bb97aba8badcb428623fa13e803b8d92 (patch) | |
tree | 917b1e63872eed3f91cf12e0a1bc7befebc92e6d /src/feature/relay/dns.c | |
parent | 379fb329d91af56db2e2759b160e8fbcb606f78d (diff) | |
download | tor-1b907d13bb97aba8badcb428623fa13e803b8d92.tar.gz tor-1b907d13bb97aba8badcb428623fa13e803b8d92.zip |
add rate limit on BEGIN and RESOLVE cell per circuit
Diffstat (limited to 'src/feature/relay/dns.c')
-rw-r--r-- | src/feature/relay/dns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index f6a020d061..129f6209d7 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -563,6 +563,12 @@ send_resolved_cell,(edge_connection_t *conn, uint8_t answer_type, connection_edge_send_command(conn, RELAY_COMMAND_RESOLVED, buf, buflen); } +void +dns_send_resolved_error_cell(edge_connection_t *conn, uint8_t answer_type) +{ + send_resolved_cell(conn, answer_type, NULL); +} + /** Send a response to the RESOLVE request of a connection for an in-addr.arpa * address on connection <b>conn</b> which yielded the result <b>hostname</b>. * The answer type will be RESOLVED_HOSTNAME. |