Nick Mathewson
|
2d4950c837
Malloc and friends are critical-path: Thus, add an it-wont-happen branch prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer.
|
18 years ago |
Nick Mathewson
|
7b0ec744bc
Switch routerlist.c to using memcmp on digests rather than 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.
|
18 years ago |
Nick Mathewson
|
93beeac01d
Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)
|
18 years ago |
Roger Dingledine
|
9af3175687
parameterize the loudness of get_interface_address()
|
18 years ago |
Roger Dingledine
|
5f6351ceb3
fix typo, add log message
|
18 years ago |
Nick Mathewson
|
f170e5798f
r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400
|
18 years ago |
Nick Mathewson
|
80282d8f55
r6993@Kushana: nickm | 2006-07-31 16:19:21 -0400
|
18 years ago |
Nick Mathewson
|
ea0f5ec8ad
r6980@Kushana: nickm | 2006-07-31 13:18:22 -0400
|
18 years ago |
Nick Mathewson
|
6d2eb77555
Whitespace fix
|
18 years ago |
Nick Mathewson
|
35960e1162
Add a mem_is_zero function (I think we will need this) and a STRUCT_OFFSET macro (we already need this).
|
18 years ago |
Roger Dingledine
|
fad85f173a
when an exit node gets a malformed begin cell, don't complain to
|
18 years ago |
Nick Mathewson
|
73ada60d64
remove non-germane comment
|
18 years ago |
Nick Mathewson
|
af8096815e
Add a memdup function to util
|
18 years ago |
Nick Mathewson
|
1f585987c4
Another escape() fix, for picky sprintfs.
|
18 years ago |
Nick Mathewson
|
2936da4c28
Override our notion of printability for esc_for_log. 127 and up are never printable. Take that, locales.
|
18 years ago |
Nick Mathewson
|
853e2d99b6
Add a new warning to our "warn a lot" list: unused parameters. This means we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.)
|
18 years ago |
Roger Dingledine
|
731f4086c0
resolve an unused variable
|
18 years ago |
Roger Dingledine
|
a4cdb834b9
Stop being picky about what the arguments to mapaddress look like.
|
18 years ago |
Peter Palfrader
|
f7ba9d77e4
All these headers we get via torint.h
|
18 years ago |
Nick Mathewson
|
8a13a7cfe8
mainline branch. Remove some more dead XXXs.
|
18 years ago |
Roger Dingledine
|
7e3a98b489
"" is not a plausible address for addressmaps.
|
18 years ago |
Roger Dingledine
|
0e62befab8
add tor_strisprint() back in, this time with comments.
|
18 years ago |
Roger Dingledine
|
4cd4353847
and remove now-extraneous function
|
18 years ago |
Nick Mathewson
|
4d3e709c4b
Use escaped() for remaining cases.
|
18 years ago |
Roger Dingledine
|
a385b0087f
fix infinite loop
|
18 years ago |
Nick Mathewson
|
5777ee0e1a
Add some functions to escape values from the network before sending them to the log. Use them everywhere except for routerinfo->plaftorm, routerinfo->contact_info, and rend*.c. (need sleep now)
|
18 years ago |
Nick Mathewson
|
6a4e304d9e
Allow private:* in routerdescs; not generated yet (because older Tors do not understand it); needs testing.
|
18 years ago |
Roger Dingledine
|
6ce36ead42
Start the process of converting warn to log_warn and so on.
|
19 years ago |
Nick Mathewson
|
2cc66125b8
try to fix bug with spurious "everything is broken" warning
|
19 years ago |
Nick Mathewson
|
dba155ecff
Generate 18.0.0.0/8 address policy format in descs when we can; warn when the mask is not reducible to a bit-prefix.
|
19 years ago |