summaryrefslogtreecommitdiff
path: root/src/or/circuit.c
AgeCommit message (Collapse)Author
2003-10-09Refactor, rename, and clarifyNick Mathewson
svn:r569
2003-10-08Update LICENSE and copyright dates.Nick Mathewson
svn:r560
2003-10-04refactor around connection_edge_send_command()Roger Dingledine
svn:r539
2003-10-04wrap strdup; prefer time() to gettimeofday()Roger Dingledine
svn:r538
2003-10-04refactor so connection_write_to_buf() never failsRoger Dingledine
svn:r537
2003-10-02Add new cell fullness and bandwidth stats.Nick Mathewson
svn:r533
2003-10-01my_routerinfo, router_is_me, and learn_my_address are obsoleteRoger Dingledine
ACIs are decided now by strcmp'ing nicknames, rather than comparing addr:port svn:r529
2003-09-27clean up receiver buckets; prepare for payloads in relay_end; note a few bugsRoger Dingledine
svn:r502
2003-09-26first pass: obey log conventionRoger Dingledine
ERR is if something fatal just happened WARNING is something bad happened, but we're still running. The bad thing is either a bug in the code, an attack or buggy protocol/implementation of the remote peer, etc. The operator should examine the bad thing and try to correct it. (No error or warning messages should be expected. I expect most people to run on -l warning eventually.) NOTICE is never ever used. INFO means something happened (maybe bad, maybe ok), but there's nothing you need to (or can) do about it. DEBUG is for everything louder than INFO. svn:r486
2003-09-25Refactor buffers; implement descriptors.Nick Mathewson
'buf_t' is now an opaque type defined in buffers.c . Router descriptors now include all keys; routers generate keys as needed on startup (in a newly defined "data directory"), and generate their own descriptors. Descriptors are now self-signed. Implementation is not complete: descriptors are never published; and upon receiving a descriptor, the directory doesn't do anything with it. At least "routers.or" and orkeygen are now obsolete, BTW. svn:r483
2003-09-24cleanups, bugfixes, more verbose logsRoger Dingledine
Fixed up the assert_*_ok funcs some (more work remains) Changed config so it reads either /etc/torrc or the -f arg, never both Finally tracked down a nasty bug with our use of tls: It turns out that if you ask SSL_read() for no more than n bytes, it will read the entire record from the network (and maybe part of the next record, I'm not sure), give you n bytes of it, and keep the remaining bytes internally. This is fine, except our poll-for-read looks at the network, and there are no bytes pending on the network, so we never know to ask SSL_read() for more bytes. Currently I've hacked it so if we ask for n bytes and it returns n bytes, then it reads again right then. This will interact poorly with our rate limiting; we need a cleaner solution. svn:r481
2003-09-18leave the socks handshake on the inbuf until it's completeRoger Dingledine
this paves the way for supporting socks5 and other handshakes it also removes those pesky AP-only variables from connection_t also hacked a fix for a bug where some streams weren't ending properly -- maybe because marked connections weren't flushing properly? svn:r472
2003-09-16bugfixes and refactoringstor-0.0.2pre8Roger Dingledine
svn:r468
2003-09-16Make sequential ACI selection logic handle HIGHER/LOWERNick Mathewson
svn:r466
2003-09-16Add first cut of assert_*_ok functionsNick Mathewson
svn:r464
2003-09-16Add #ifdef'd code (on by default) to allocate ACIs sequentially.Nick Mathewson
svn:r462
2003-09-16clean up exported api'sRoger Dingledine
svn:r461
2003-09-14bugfix: onion pending queue now worksRoger Dingledine
and fixed recent memory leak svn:r456
2003-08-25Attempt to track down bug in conn->package_windowNick Mathewson
svn:r415
2003-08-11better log output for debuggingRoger Dingledine
svn:r375
2003-08-11Fix typo: ports are 16 bits.Nick Mathewson
svn:r374
2003-07-30src/orNick Mathewson
svn:r371
2003-07-03fix many bugs in package_window handlingRoger Dingledine
svn:r363
2003-06-24slightly happier on 64-bit archsRoger Dingledine
svn:r349
2003-06-21Remove false warnings from printf checksNick Mathewson
svn:r340
2003-06-17Change many files to new log_fn formatNick Mathewson
svn:r333
2003-06-13relay queues are obsolete (woo!)Roger Dingledine
they used to be used for * queueing relay cells at the edge of the network, when windows are empty * queueing relay cells that arrive after an onion but before the onion has been processed. both of these uses are gone. so out they go. svn:r315
2003-06-12implement truncate and truncated (untested)Roger Dingledine
clean up circuit_deliver_relay_cell convention svn:r312
2003-06-01bugfix: it was expiring circuits that still had active connectionsRoger Dingledine
svn:r303
2003-05-28OPport is gone. So is conn type OP.Roger Dingledine
svn:r298
2003-05-28bugfixRoger Dingledine
svn:r297
2003-05-27fix design bug: circ->n_conn is shared among circs, so it can'tRoger Dingledine
point to the streams for this circ. svn:r296
2003-05-20remove dead codeRoger Dingledine
circuits no longer queue more cells when the windows are empty -- they simply don't package it from the buffer if they're not going to want it. we can restore this code later if we need to resume queueing. svn:r294
2003-05-20add circuit-level sendme relay cellsRoger Dingledine
remove sendme cells replace malloc with tor_malloc patch (but not track down) bug in onion pending list streamline connection_ap handshake svn:r293
2003-05-06put some symbolic constants to the onion skin lengthsRoger Dingledine
svn:r265
2003-05-05incremental path building in; uses ephemeral DH; onions are goneRoger Dingledine
still need to change circuit-level sendmes svn:r264
2003-05-02streams are now 8 bytes, and are recognized by intermediate hopsRoger Dingledine
the OP only crypts the appropriate number of times depending on which layer (hop on the path) it's for/from. svn:r262
2003-05-01cpath is now a doubly linked list, not an arrayRoger Dingledine
svn:r260
2003-05-01terminology shift: data->relay, topic->relay, topic->streamRoger Dingledine
svn:r258
2003-04-20bugfix: a circ can't be youngest if it's still connecting to the first hopRoger Dingledine
svn:r255
2003-04-20bugfix: refactor to always use circuit_removeRoger Dingledine
this way we can always check if a new circ needs to be launched svn:r254
2003-04-18bugfix: only close old circuits if they have no connections!Roger Dingledine
svn:r251
2003-04-17Choose correct abstraction for topic_foo. Abstract random-integer codeNick Mathewson
svn:r249
2003-04-16further cleanup, test.c still has some bugsRoger Dingledine
svn:r241
2003-04-16Remove the last vestige of code that claims to know the inner structure of ↵Nick Mathewson
an onion on the network svn:r239
2003-04-16Factor out timeval-related functions.Nick Mathewson
svn:r237
2003-04-16Remove the notion of "onion ciphers"; make packing and unpacking separate fnsNick Mathewson
svn:r236
2003-04-16divorce circuit building from user connectionsRoger Dingledine
now we rebuild the circuit periodically (but only if it's been used), and we can further abstract it to do incremental circuit building, etc. svn:r233
2003-04-11refactored some duplicate code into connection_edge.cRoger Dingledine
svn:r230
2003-04-07Add magic to end of C files to make emacs happy; split test invocation into ↵Nick Mathewson
separate file. svn:r224