summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-01-18 03:42:45 +0000
committerRoger Dingledine <arma@torproject.org>2007-01-18 03:42:45 +0000
commit060be4c62bc1c415d9c328cd005bf9fa7edd99fc (patch)
treec37783d1cdcddf4369015d25aad78f738f7c94ee /src/or/connection.c
parenta3eaabfeb2fd5ccbdf0f158bb95d545beb34ab21 (diff)
downloadtor-060be4c62bc1c415d9c328cd005bf9fa7edd99fc.tar.gz
tor-060be4c62bc1c415d9c328cd005bf9fa7edd99fc.zip
man, i could have sworn that compiled
svn:r9369
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index fbd2a8aa41..189a556fbe 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1150,9 +1150,9 @@ connection_bucket_read_limit(connection_t *conn)
or_connection_t *or_conn = TO_OR_CONN(conn);
conn_bucket = or_conn->read_bucket;
}
- if (conn_is_internal(conn->addr, 0)) {
+ if (is_internal_IP(conn->addr, 0)) {
/* be willing to read on local conns even if our buckets are empty */
- return conn_bucket>=0 ? conn_bucket : 2**14;
+ return conn_bucket>=0 ? conn_bucket : 1<<14;
}
return connection_bucket_round_robin(base, priority,
global_read_bucket, conn_bucket);
@@ -1166,7 +1166,7 @@ connection_bucket_write_limit(connection_t *conn)
CELL_NETWORK_SIZE : RELAY_PAYLOAD_SIZE;
int priority = conn->type != CONN_TYPE_DIR;
- if (conn_is_internal(conn->addr, 0)) {
+ if (is_internal_IP(conn->addr, 0)) {
/* be willing to write to local conns even if our buckets are empty */
return conn->outbuf_flushlen;
}