aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
Commit message (Collapse)AuthorAge
* r8970@totoro: nickm | 2006-10-09 10:12:53 -0400Nick Mathewson2006-10-09
| | | | | | | Win32 patch from Matt Edman: fix compilation bugs by casting to int; defining SSIZE_T; defining USE_TWOS_COMPLEMENT in windows orconfig.h; and using the proper names for win32 functions on GetProcAddress. Also fixes bug 295. svn:r8669
* r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson2006-10-09
| | | | | | | The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
* minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8622
* bugfix: When testing reachability of our dirport, don't launch a newRoger Dingledine2006-10-06
| | | | | | | test if there's already one in progress. svn:r8604
* r8838@totoro: nickm | 2006-10-02 15:24:39 -0400Nick Mathewson2006-10-03
| | | | | | | Partial implementation of revised nickname syntax for controllers. Implement ability to look up routers by "verbose" nicknames; add a per-v1-control-connection flag to turn the feature on in events. Needs testing, spec, ability to actually turn on the flag, double-checking that we wont overflow any nickname buffers, and changelog. svn:r8582
* - V1 authorities should set "HSAuthoritativeDir 1" to continue beingRoger Dingledine2006-10-01
| | | | | | | | | | hidden service authorities too. - Just because your DirPort is open doesn't mean people should be able to remotely teach you about hidden service descriptors. Now only accept rendezvous posts if you've got HSAuthoritativeDir set. svn:r8573
* stop trying to hammer router_rebuild_descriptor() when we don'tRoger Dingledine2006-09-30
| | | | | | | have a public address we like yet. svn:r8554
* r9032@Kushana: nickm | 2006-09-29 18:51:42 -0400Nick Mathewson2006-09-29
| | | | | | | Now, all log messages should be distinct. svn:r8545
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r9005@Kushana: nickm | 2006-09-29 10:37:55 -0400Nick Mathewson2006-09-29
| | | | | | | Implement DESCCHANGED event to tell controller when our router descriptor changes. svn:r8533
* r8977@Kushana: nickm | 2006-09-28 19:56:41 -0400Nick Mathewson2006-09-28
| | | | | | | Make "is a v1 authority", "is a v2 authority", and "is a hidden service authority" into separate flags so we can eventually migrate more trust away from moria. svn:r8523
* r8879@Kushana: nickm | 2006-09-21 17:20:31 -0400Nick Mathewson2006-09-21
| | | | | | | Oops from earlier patch; add "opt eventdns" to unittests, fix bug in routerdesc generation. svn:r8444
* r8872@Kushana: nickm | 2006-09-21 14:00:20 -0400Nick Mathewson2006-09-21
| | | | | | | Implement server-side reverse DNS using eventdns. Add an option to routerdescs so we can tell which servers have eventdns enabled. svn:r8437
* Stop searching routerlist for routers with the same identity as other ↵Nick Mathewson2006-09-19
| | | | | | routers (on router insert): we already have a map for that. (We need to add an index field to routerinfo_t so we can figure out which point in the routerlist to replace.) Also, add a comment to routerlist.c; arma, please advise? svn:r8432
* actually, do the bandwidth test anyway, if you've been up atRoger Dingledine2006-09-15
| | | | | | | least 6 hours at your previous address. svn:r8403
* avoid thrashing the bandwidth exercise when we change IPs a lot.Roger Dingledine2006-09-15
| | | | | | | | | | (we avoid simply by not doing any new tests when we change IPs -- it looks like we retain our previous bandwidth estimates, so there's no need to do new exercise. though in some cases new exercises may still be useful. one day we'll do something smarter.) svn:r8402
* make my bandwidth exercises actually happenRoger Dingledine2006-09-15
| | | | svn:r8400
* Send out a burst of long-range drop cells after we've established thatRoger Dingledine2006-09-15
| | | | | | | | we're reachable. Spread them over 4 circuits, so hopefully a few will be fast. This exercises our bandwidth and bootstraps us quicker. svn:r8399
* r8819@Kushana: nickm | 2006-09-15 00:27:45 -0400Nick Mathewson2006-09-15
| | | | | | | Implement a smartlist_uniq() that will with luck not end the world. svn:r8396
* r9758@danube: weasel | 2006-09-14 07:10:12 +0200Peter Palfrader2006-09-14
| | | | | | | Add a comment svn:r8391
* r9753@danube: weasel | 2006-09-14 07:07:02 +0200Peter Palfrader2006-09-14
| | | | | | | Remove duplicates from MyFamily svn:r8390
* r9736@danube: weasel | 2006-09-14 05:53:06 +0200Peter Palfrader2006-09-14
| | | | | | | | Refactor dirserv_parse_fingerprint_file(fname) into dirserv_load_fingerprint_file(): There is not need to put together the path to the approved-routers file in more than one place. svn:r8386
* start remembering X-Your-Address-Is hints even if you'reRoger Dingledine2006-09-09
| | | | | | | a client, so you can become a server more smoothly. svn:r8359
* fix typo, add log messageRoger Dingledine2006-09-09
| | | | svn:r8357
* add a "getinfo address" controller command.Roger Dingledine2006-09-09
| | | | svn:r8354
* prefer calling it a client rather than an OPRoger Dingledine2006-09-07
| | | | svn:r8334
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* when we find our dirport to be reachable, mark our descriptorRoger Dingledine2006-07-18
| | | | | | | dirty so we'll tell the world. (fixes bug 306 reported by pnx) svn:r6787
* Start publishing one minute or so after we find our ORPortRoger Dingledine2006-07-18
| | | | | | | | | to be reachable. This will help reduce the number of descriptors we have for ourselves floating around, since it's quite likely other things (e.g. DirPort) will change during that minute too. svn:r6786
* parameterize the loudness of log_addr_has_changed(), since it's theRoger Dingledine2006-07-17
| | | | | | | | only place where we inform the user of a new IP address, if we're guessing it from external sources. svn:r6780
* Make a louder statement the first time we learn a guessedRoger Dingledine2006-07-17
| | | | | | | IP address. svn:r6779
* and don't try to build the descriptor every second, if it's dirtyRoger Dingledine2006-07-17
| | | | | | | but we don't have a known address. svn:r6777
* fix some more places where we shouldn't crash if we can't buildRoger Dingledine2006-07-17
| | | | | | | our own descriptor yet. svn:r6775
* Allow servers with no hostname or IP address to learn their IP addressRoger Dingledine2006-07-17
| | | | | | | | | | | | | by asking the directory authorities. This code only kicks in when you would normally have exited with a "no address" error. This design is flawed, though, since the X-Your-Address-Is header is not authenticated, and doing it this way introduces too many new attacks. The right answer is to give IP address hints inside the HELLO cell; much of this code can be reused when we switch. svn:r6774
* parameterize the loudness of resolve_my_address(), and call thingsRoger Dingledine2006-07-15
| | | | | | | IP addresses, not IPs. svn:r6764
* Get rid of the router_retry_connections notion. Now routers no longerRoger Dingledine2006-07-04
| | | | | | | | | | | | | try to rebuild long-term connections to directory authorities, and directory authorities no longer try to rebuild long-term connections to all servers. We still don't hang up connections in these two cases though -- we need to look at it more carefully to avoid flapping, and we likely need to wait til 0.1.1.x is obsolete. svn:r6712
* Next batch of memory miserdom: mmap cached-routers file. This is sure to ↵Nick Mathewson2006-06-22
| | | | | | break somewhere. svn:r6675
* be more lax about recognizing valid hexdigests.Roger Dingledine2006-06-13
| | | | svn:r6619
* simplify the tortls api: we only support being a "server", thatRoger Dingledine2006-06-07
| | | | | | | | | | is, even tor clients do the same sort of handshake. this has been true for years, so it's best to get rid of the stale code. svn:r6557
* Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson2006-06-04
| | | | | | we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
* be more verbose about testing reachability of our ORPort.Roger Dingledine2006-05-26
| | | | svn:r6506
* petty cleanupsRoger Dingledine2006-04-25
| | | | svn:r6421
* Regenerate our local descriptor if it's dirty and some localRoger Dingledine2006-04-23
| | | | | | | function asks for it. This may resolve bug 286. svn:r6412
* forward-port: "Resolve" all XXX011 items, mostly by marking them non-011.Nick Mathewson2006-04-18
| | | | svn:r6396
* that extra punctuation distracts meRoger Dingledine2006-03-27
| | | | svn:r6250
* Refactor and consolidate addr/exit policies into a new policies.c.Roger Dingledine2006-03-27
| | | | | | | Fix some minor bugs and memory leaks along the way. svn:r6246
* stop writing the "router.desc" file, ever. nothing uses it anymore.Roger Dingledine2006-03-22
| | | | svn:r6224
* Log server fingerprint on startupPeter Palfrader2006-03-22
| | | | svn:r6223
* Finish the transition from the word 'verified' to the wordsRoger Dingledine2006-03-19
| | | | | | | 'named' and 'valid'. svn:r6188
* normalize whitespace.Nick Mathewson2006-03-17
| | | | svn:r6173