aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
Commit message (Collapse)AuthorAge
* r11639@catbus: nickm | 2007-02-05 13:33:38 -0500Nick Mathewson2007-02-05
| | | | | | | Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* r11620@catbus: nickm | 2007-02-01 13:06:27 -0500Nick Mathewson2007-02-01
| | | | | | | Call stat() slightly less often; use fstat() when possible. svn:r9472
* r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500Nick Mathewson2006-12-29
| | | | | | | Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames svn:r9211
* r11597@Kushana: nickm | 2006-12-15 15:49:27 -0500Nick Mathewson2006-12-15
| | | | | | | Add a rudimentary line-wrapping function for use in dumping comments in config files. svn:r9132
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* 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
* add missing paren in dmalloc tor_freeNick Mathewson2006-09-25
| | | | svn:r8498
* 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
* parameterize the loudness of get_interface_address()Roger Dingledine2006-09-09
| | | | svn:r8358
* r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700Nick Mathewson2006-08-11
| | | | | | | Amazing how much difference adding a ! to all your asserts can make. svn:r7029
* r7337@Kushana: nickm | 2006-08-11 00:42:04 -0700Nick Mathewson2006-08-11
| | | | | | | Only use __builtin_offsetof with gcc 4 or later svn:r7028
* r7326@Kushana: nickm | 2006-08-10 23:50:49 -0700Nick Mathewson2006-08-11
| | | | | | | And another GCC change: predict that tor_frees() are usually real frees, and tor_asserts() usually wont happen. Other test should wait till -fprofile-arcs svn:r7022
* r7325@Kushana: nickm | 2006-08-10 23:37:31 -0700Nick Mathewson2006-08-11
| | | | | | | Use gcc offsetof where available. svn:r7021
* r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700Nick Mathewson2006-08-11
| | | | | | | Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation. svn:r7020
* 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
* 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
* minor fixesRoger Dingledine2006-07-04
| | | | svn:r6710
* perhaps the reason I rail against cut-and-paste programming so vehemently is ↵Nick Mathewson2006-06-18
| | | | | | that I am so bad at it. svn:r6638
* Add a memdup function to utilNick Mathewson2006-06-18
| | | | svn:r6635
* 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
* Instead of listing a set of compilers that prefers __func__ to __FUNCTION__, ↵Nick Mathewson2006-03-13
| | | | | | use autoconf. Also, prefer __func__ in our own code: __func__ is a C99 standard, whereas __FUNCTION__ is not. [Fixes bug 254.] svn:r6144
* 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
* 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
* util.c:1308: error: conflicting types for "is_internal_IP"Nick Mathewson2005-12-09
| | | | svn:r5545
* Move code to check for zero digests into util.cNick Mathewson2005-11-30
| | | | svn:r5468
* tor_assert had a misleading commentRoger Dingledine2005-11-01
| | | | svn:r5338
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
* Start dividing log messages into logging domains. No, LD_ is not the best ↵Nick Mathewson2005-10-18
| | | | | | of identifiers. src/or has not been converted yet. Domains dont do anything yet. svn:r5284
* Inline key smartlist functions; use fast versions by default.Nick Mathewson2005-10-18
| | | | svn:r5265
* Make doxygen marginally happierNick Mathewson2005-10-06
| | | | svn:r5208
* Reorganize some quick-and-dirty code to find out what openssl stuff is ↵Nick Mathewson2005-10-03
| | | | | | leaking, using dmalloc. svn:r5178
* even better function start checks; give dmalloc a chance of working.Nick Mathewson2005-09-30
| | | | svn:r5162
* Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson2005-09-29
| | | | | | little better. svn:r5150
* Two new functions like write_bytes_to_file: one takes a list of byte-and-len ↵Nick Mathewson2005-09-13
| | | | | | structs; one appends. svn:r5024
* add strupper functionNick Mathewson2005-09-08
| | | | svn:r4934
* Add directory listing functions to util.[ch]. Watch the features creep!Nick Mathewson2005-09-03
| | | | svn:r4906
* add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()Roger Dingledine2005-08-26
| | | | svn:r4838
* Make clients regenerate their keys when their IP address changes.Nick Mathewson2005-08-03
| | | | svn:r4688
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* clean up this TOR_FRAGILE businessRoger Dingledine2005-04-26
| | | | svn:r4116
* bugfix: chdir to your datadirectory at the *end* of theRoger Dingledine2005-04-06
| | | | | | | | | | daemonize process, not the beginning. this was a problem because the first time you run tor, if your datadir isn't there, and you have runasdaemon set to 1, it will try to chdir to it before it tries to create it. oops. svn:r4033
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* Implement more control spec functionalityNick Mathewson2005-02-25
| | | | | | | | | | | | | | | | | | - Mapaddress - Postdescriptor - GetInfo on descriptors Required changes elsewhere: - Keep the most recent running_routers_t in the routerlist_t. That way we can learn about new routers and remember whether we were last told that they were up or down. Also enables more simplifications. - Keep the signed descriptor inside routerinfo_t. This makes descriptor_entry_t in dirservers.c unneeded. - Rename AddressMap (the verb) to MapAddress. Keep AddressMap as a noun. - Check addresses for plausibility before mapping them. svn:r3696