aboutsummaryrefslogtreecommitdiff
path: root/src/or/routers.c
Commit message (Collapse)AuthorAge
* Fix bytesex issues on in.s_addrNick Mathewson2003-11-17
| | | | svn:r826
* dump exit policies correctly to descriptorRoger Dingledine2003-11-16
| | | | svn:r815
* initial patches on patchesRoger Dingledine2003-11-16
| | | | svn:r814
* Finish implementing the rest of the exitpolicy stuff, except for ↵Nick Mathewson2003-11-16
| | | | | | automatically starting circuit builds. svn:r813
* Improved exit policy syntax; basic client-side DNS caching.Nick Mathewson2003-11-14
| | | | | | | | | | | | | | | | | | | | - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and bitcounts 18.0.0.0/8. Policies are parsed on startup, not when comparing to them. - desired_path_len is now part of an opaque cpath_build_state_t structure. - END_REASON_EXITPOLICY cells no longer include a port. - RELAY_COMMAND_CONNECTED cells now include the IP address we've connected to. - connection_edge now has a client_dns cache to remember resolved addresses. It gets populated by RELAY_COMMAND_CONNECTED cells and END_REASON_EXITPOLICY cells. It gets used by connection_ap_handshake_send_begin. We don't compare it to exit policies yet. svn:r812
* lay groundwork for EntryNodes and ExitNodesRoger Dingledine2003-11-12
| | | | svn:r805
* more cleanups and bugfixRoger Dingledine2003-11-11
| | | | svn:r790
* client now survives going offline betterRoger Dingledine2003-11-10
| | | | | | | | | fix badness in usage() if neither socksport nor orrport is defined, quit obsolete connection_flush_buf() svn:r780
* move closer to being able to reload config on HUPRoger Dingledine2003-10-21
| | | | | | | | rename APPort to SocksPort introduce new tor_free() macro svn:r642
* include our own timegm() impl, since it's not portableRoger Dingledine2003-10-20
| | | | svn:r635
* no more memory leaksRoger Dingledine2003-10-18
| | | | | | | | when you run it under normal operation for as many as three minutes svn:r622
* fix two more memory problemsRoger Dingledine2003-10-18
| | | | | | | one remains :) svn:r621
* clean up memory leaks, confusionsRoger Dingledine2003-10-18
| | | | | | | still one memory leak remaining here. svn:r620
* catch misconfigured machines that return hostname as fqdnRoger Dingledine2003-10-17
| | | | svn:r610
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* Update LICENSE and copyright dates.Nick Mathewson2003-10-08
| | | | svn:r560
* more details to track a warning in tls handshakesRoger Dingledine2003-10-07
| | | | | | | plus make exit policy comparisons not always reject svn:r559
* successfully parse exit policies on future attempts tooRoger Dingledine2003-10-07
| | | | svn:r558
* pull exit policies from config into desc_routerinfoRoger Dingledine2003-10-07
| | | | svn:r557
* lowercase exit policies.Nick Mathewson2003-10-07
| | | | svn:r556
* obey exit policies for addresses tooRoger Dingledine2003-10-07
| | | | svn:r555
* Stop requiring newline at end of exit policy.Nick Mathewson2003-10-07
| | | | svn:r554
* Add a "router_add_exit_policy_from_string" function.Nick Mathewson2003-10-07
| | | | svn:r553
* give correct warning message when you're running an old versionRoger Dingledine2003-10-07
| | | | svn:r546
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* Make testcases run again; more sanity checking to descriptor generation.Nick Mathewson2003-10-01
| | | | svn:r532
* my_routerinfo, router_is_me, and learn_my_address are obsoleteRoger Dingledine2003-10-01
| | | | | | | ACIs are decided now by strcmp'ing nicknames, rather than comparing addr:port svn:r529
* rebuild directory before uploadingNick Mathewson2003-10-01
| | | | svn:r528
* Move dirserv/routers code out of main.cNick Mathewson2003-10-01
| | | | svn:r527
* Add "platform" to router descriptors.Nick Mathewson2003-09-30
| | | | svn:r522
* mark all dirservers up at boot; mark a dirserver down if dir fetch failsRoger Dingledine2003-09-30
| | | | svn:r519
* fix the SSL_read() bug again. this time for sure!Roger Dingledine2003-09-30
| | | | svn:r518
* Check router signatures again; debug signature checkingNick Mathewson2003-09-30
| | | | svn:r517
* Bugfixes in directory code:Nick Mathewson2003-09-30
| | | | | | | | | | | | | | | | | | | Improve debugging output on fingerprint checking. Make sure to add our own fingerprint to the fingerprint list _before_ adding our own descriptor, or else we'll reject ourself. Don't call a directory invalid just because we have a newer descriptor for some router. Use router_get_dir_hash to generate hashes for signed directories. Make sure we add our own descriptor successfully. Don't fall-through on failed base64-endode. svn:r514
* patch strptime warning -- reduce portability!Roger Dingledine2003-09-30
| | | | svn:r511
* getting closer to having dirserv workingRoger Dingledine2003-09-30
| | | | | | | | we now add our own descriptor to the descriptor list and we rebuild the directory (and dump to disk) after receiving a POST svn:r509
* bugfixes and features: closer to making dirserv workRoger Dingledine2003-09-29
| | | | | | | | | | | fix a variety of seg faults don't try to list OPs in running-routers write cached-directory to disk when rebuilding the dir on boot, dirservers load approved-routers file on boot, dirservers load cached directory file svn:r508
* expand the scheduler to address SSL_read()'s pending bytesRoger Dingledine2003-09-28
| | | | svn:r505
* Write necessary backends for online directory generation. I think.Nick Mathewson2003-09-27
| | | | svn:r503
* Add code to parse fingerprint files and compare routers against fingerprint ↵Nick Mathewson2003-09-26
| | | | | | files. svn:r490
* Refactor common file code into util.c; add published to descriptorsNick Mathewson2003-09-26
| | | | svn:r487
* first pass: obey log conventionRoger Dingledine2003-09-26
| | | | | | | | | | | | | | | | | | | | | 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
* various bugfixes and updatesRoger Dingledine2003-09-25
| | | | | | | | | | | | | | | | | | | | redo all the config files for the new format (we'll redo them again soon) fix (another! yuck) segfault in log_fn when input is too large tor_tls_context_new() returns -1 for error, not NULL fix segfault in check_conn_marked() on conn's that die during tls handshake make ORs also initialize conn from router when we're the receiving node make non-dirserver ORs upload descriptor to every dirserver on startup add our local address to the descriptor add Content-Length field to POST command revert the Content-Length search in fetch_from_buf_http() to previous code fix segfault in memmove in fetch_from_buf_http() raise maximum allowed headers/body size in directory.c svn:r484
* Refactor buffers; implement descriptors.Nick Mathewson2003-09-25
| | | | | | | | | | | | | | | | | '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
* leave the socks handshake on the inbuf until it's completeRoger Dingledine2003-09-18
| | | | | | | | | | | 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
* add in directory 'post' supportRoger Dingledine2003-09-17
| | | | svn:r471
* clean up exported api'sRoger Dingledine2003-09-16
| | | | svn:r461
* fix two more bugsRoger Dingledine2003-09-13
| | | | svn:r452
* Add router_get_by_pk function; use in connection_tls_finish_handshake.Nick Mathewson2003-09-11
| | | | svn:r441
* point out why router_forget_router probably doesn't workRoger Dingledine2003-08-29
| | | | svn:r422