aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Collapse)AuthorAge
* r8851@totoro: nickm | 2006-10-02 18:13:27 -0400Nick Mathewson2006-10-02
| | | | | | | Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces. svn:r8580
* r8846@totoro: nickm | 2006-10-02 16:59:57 -0400Nick Mathewson2006-10-02
| | | | | | | Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX. svn:r8578
* r8845@totoro: nickm | 2006-10-02 16:34:58 -0400Nick Mathewson2006-10-02
| | | | | | | Fix an XXXX: make path_is_relative work on windows even though we never use it there. svn:r8577
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400Nick Mathewson2006-09-29
| | | | | | | Make distinct all non-bug messages at notice or higher that appear 3 or more times. svn:r8541
* r9008@Kushana: nickm | 2006-09-29 13:50:10 -0400Nick Mathewson2006-09-29
| | | | | | | Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct. svn:r8536
* r8974@Kushana: nickm | 2006-09-28 17:05:59 -0400Nick Mathewson2006-09-28
| | | | | | | Improvement to last entry guards patch: track when we last attempted to connect to a node in our state file along with how long it has been unreachable. Also clarify behavior of parse_iso_time() when it gets extra characters. svn:r8520
* r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400Nick Mathewson2006-09-21
| | | | | | | Trivial whitespace cleanups. svn:r8443
* Speed up eat_whitespace by a lot.Nick Mathewson2006-09-19
| | | | svn:r8434
* NEEDS REVIEW. Act on previous comment, and handle named servers differently: ↵Nick Mathewson2006-09-19
| | | | | | now, we allow multiple servers with the same name in the routerlist even if that name is reserved, but we check whether names are reserved when we try to look up routers by nickname. This is a minor security fix. This makes router_add_to_routerlist O(1). This is a backport candidate. svn:r8433
* Malloc and friends are critical-path: Thus, add an it-wont-happen branch ↵Nick Mathewson2006-09-19
| | | | | | prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer. svn:r8431
* Switch routerlist.c to using memcmp on digests rather than ↵Nick Mathewson2006-09-19
| | | | | | crypto_pk_cmp_keys(); speed up find_whitespace a lot (8x for me) by using a switch statement. This should speed parsing a lot of routers at once by a lot. svn:r8430
* Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson2006-09-19
| | | | svn:r8427
* parameterize the loudness of get_interface_address()Roger Dingledine2006-09-09
| | | | svn:r8358
* fix typo, add log messageRoger Dingledine2006-09-09
| | | | svn:r8357
* r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400Nick Mathewson2006-08-31
| | | | | | | Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.) svn:r8310
* r6993@Kushana: nickm | 2006-07-31 16:19:21 -0400Nick Mathewson2006-07-31
| | | | | | | Interesting how much a ! can change the behavior of an assert. svn:r6962
* r6980@Kushana: nickm | 2006-07-31 13:18:22 -0400Nick Mathewson2006-07-31
| | | | | | | Add a utility function to verify that a string has been through strlower. svn:r6959
* Whitespace fixNick Mathewson2006-07-23
| | | | svn:r6816
* Add a mem_is_zero function (I think we will need this) and a STRUCT_OFFSET ↵Nick Mathewson2006-07-23
| | | | | | macro (we already need this). svn:r6810
* when an exit node gets a malformed begin cell, don't complain toRoger Dingledine2006-07-06
| | | | | | | the node operator, since he can't do anything about it. svn:r6733
* remove non-germane commentNick Mathewson2006-06-18
| | | | svn:r6640
* Add a memdup function to utilNick Mathewson2006-06-18
| | | | svn:r6635
* Another escape() fix, for picky sprintfs.Nick Mathewson2006-06-09
| | | | svn:r6579
* Override our notion of printability for esc_for_log. 127 and up are never ↵Nick Mathewson2006-06-09
| | | | | | printable. Take that, locales. svn:r6578
* 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
* resolve an unused variableRoger Dingledine2006-05-26
| | | | svn:r6503
* Stop being picky about what the arguments to mapaddress look like.Roger Dingledine2006-05-25
| | | | | | | | | we were refusing names that had $ in them, which people who specify $key.exit will be sad about. There are likely other examples. If people can think of reasons why we should be picky, let me know. svn:r6496
* All these headers we get via torint.hPeter Palfrader2006-05-10
| | | | svn:r6452
* mainline branch. Remove some more dead XXXs.Nick Mathewson2006-04-18
| | | | svn:r6401
* "" is not a plausible address for addressmaps.Roger Dingledine2006-04-03
| | | | svn:r6299
* add tor_strisprint() back in, this time with comments.Roger Dingledine2006-03-15
| | | | svn:r6170
* and remove now-extraneous functionRoger Dingledine2006-03-15
| | | | svn:r6168
* Use escaped() for remaining cases.Nick Mathewson2006-03-11
| | | | svn:r6117
* fix infinite loopRoger Dingledine2006-03-06
| | | | svn:r6090
* Add some functions to escape values from the network before sending them to ↵Nick Mathewson2006-03-05
| | | | | | the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now) svn:r6087
* Allow private:* in routerdescs; not generated yet (because older Tors do not ↵Nick Mathewson2006-03-05
| | | | | | understand it); needs testing. svn:r6086
* Start the process of converting warn to log_warn and so on.Roger Dingledine2006-02-13
| | | | | | | | | This is needed because Windows already has an err() that we can't clobber. And we need to be able to make the log functions a macro so we can print the function's name in the log entry. svn:r6000
* try to fix bug with spurious "everything is broken" warningNick Mathewson2006-02-13
| | | | svn:r5994
* Generate 18.0.0.0/8 address policy format in descs when we can; warn when ↵Nick Mathewson2006-02-12
| | | | | | the mask is not reducible to a bit-prefix. svn:r5991
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Refuse to use RunAsDaemon when torrc is a relative path. Fixes bug 229.Nick Mathewson2006-01-10
| | | | svn:r5767
* Clearner fix for timegm assert problem.Nick Mathewson2006-01-01
| | | | svn:r5690
* Fix assertion-trigger bug found by sjmurdochNick Mathewson2006-01-01
| | | | svn:r5689
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* let is_internal_IP() know whether you're asking about an IPRoger Dingledine2005-12-09
| | | | | | | | address for connecting or an IP address for binding, because in the latter, 0.0.0.0 is a special case. svn:r5543
* Do not free a constant string.Nick Mathewson2005-12-08
| | | | svn:r5527
* Remove superfluous strdupPeter Palfrader2005-12-05
| | | | svn:r5503
* Also print usernames, not just numeric UIDs when we tell the user that his ↵Peter Palfrader2005-12-05
| | | | | | data directory has the wrong owner svn:r5502
* give a hint when people are running tor as the wrong user, rather thanRoger Dingledine2005-12-05
| | | | | | | telling them to start chowning random directories. svn:r5500