aboutsummaryrefslogtreecommitdiff
path: root/src/or/routers.c
Commit message (Collapse)AuthorAge
* break routers.c into router.c for stuff the router does,Roger Dingledine2003-12-06
| | | | | | | and routerlist.c for handling routerlist. svn:r887
* terminology shift:Roger Dingledine2003-12-05
| | | | | | | | | | | | | directory is the string that dirserv.c and directory.c deal with routerlist is routerinfo's that are bundled together in routers.c rename some of the get_routerlist functions to set_routerlist preparing to break into router.c for stuff the router does, and routerlist.c for handling routerlist. svn:r886
* choose randomly from running dirservers, not always the first oneRoger Dingledine2003-12-03
| | | | svn:r881
* pick nodes for a circuit only from those the directory says are upRoger Dingledine2003-12-03
| | | | svn:r880
* bugfix in exit node choice: we used to find the perfect exit node but ↵Roger Dingledine2003-12-03
| | | | | | | | | | | | | | | | | then use the wrong one. bugfix in connection_ap_can_use_exit: it was using the wrong port bugfix: the OP now handles a port of '*' correctly when the IP is not yet known and it's trying to guess whether a router's exit policy might accept it. we now don't ever pick exit routers which will reject *:* attach_circuit now fails a new stream outright if it will never work. when you get an 'end' cell that resolves an IP, now it will fail the circuit outright if no safe exit nodes exist for that IP. don't try building a new circuit after an 'end' if a suitable one is already on the way. svn:r874
* start tracking a rare bug: package_raw_inbuf gets called with package_window 0Roger Dingledine2003-11-30
| | | | | | | | Nov 25 22:39:18.294 [warn] connection_edge_package_raw_inbuf(): called with package_window 0. T ell Roger. svn:r870
* if you tell people that IgnoreVersion exists,Roger Dingledine2003-11-19
| | | | | | | some of them will use it rather than upgrade. svn:r852
* use the tor_malloc_zero wrapperRoger Dingledine2003-11-18
| | | | svn:r837
* Always include newline with port section of exit policyNick Mathewson2003-11-18
| | | | svn:r832
* 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