tor/src/or
Nick Mathewson 9bfb274abb Refactor smartlist_choose_node_by_bandwidth to be less horrible.
With this patch, I dump the old kludge of using magic negative
numbers to indicate unknown bandwidths.  I also compute each node's
weighted bandwidth exactly once, rather than computing it once in
a loop to compute the total weighted bandwidth and a second time in
a loop to find which one we picked.
2012-08-09 12:59:04 -04:00
..
buffers.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
buffers.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
circuitbuild.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
circuitbuild.h Merge remote-tracking branch 'asn-mytor/bug5589_take2' 2012-06-14 13:05:16 -04:00
circuitlist.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
circuitlist.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
circuituse.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
circuituse.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
command.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
command.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
config_codedigest.c Resolve about 24 DOCDOCs 2012-06-05 00:17:54 -04:00
config.c Warn when accounting is used in a way likely to link hidden services 2012-07-31 10:28:16 -04:00
config.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
connection_edge.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
connection_edge.h Merge remote-tracking branch 'public/bug3940_redux' 2012-06-13 11:40:38 -04:00
connection_or.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
connection_or.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
connection.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
connection.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
control.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
control.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
cpuworker.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
cpuworker.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
directory.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
directory.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
dirserv.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
dirserv.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
dirvote.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
dirvote.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
dns.c Avoid hard (impossible?)-to-trigger double-free in dns_resolve() 2012-07-31 17:19:17 -04:00
dns.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
dnsserv.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
dnsserv.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
eventdns_tor.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
eventdns.c Be more careful calling wcstombs 2012-06-07 11:09:38 -04:00
eventdns.h Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32 2012-01-31 15:48:47 -05:00
geoip.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
geoip.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
hibernate.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
hibernate.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
main.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
main.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
Makefile.am Merge remote-tracking branch 'origin/maint-0.2.2' 2012-02-12 23:27:31 -05:00
Makefile.nmake Be a good git person: store nmakefiles in correct text fmt 2012-05-14 13:01:05 -04:00
microdesc.c Downgrade message about md cache cleaning from notice to info 2012-06-26 10:30:11 -04:00
microdesc.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
networkstatus.c Fix the remaining instances of nexted SMARTLIST_FOREACH 2012-07-17 10:41:24 -04:00
networkstatus.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
nodelist.c Catch a few more K&R violations with make check-spaces 2012-06-23 15:54:01 -04:00
nodelist.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
ntmain.c Be more careful calling wcstombs 2012-06-07 11:09:38 -04:00
ntmain.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
onion.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
onion.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
or.h Defend against entry node path bias attacks 2012-06-14 13:19:56 -07:00
policies.c Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END 2012-07-17 10:34:08 -04:00
policies.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
reasons.c Merge remote-tracking branch 'public/bug4710' 2012-06-05 10:16:28 -04:00
reasons.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
relay.c Detect bug 6252 (unexpected sendme cell) 2012-07-18 10:23:04 -04:00
relay.h Move tor_gettimeofday_cached() into compat_libevent 2012-06-15 15:07:53 -04:00
rendclient.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
rendclient.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
rendcommon.c Resolve about 24 DOCDOCs 2012-06-05 00:17:54 -04:00
rendcommon.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
rendmid.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
rendmid.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
rendservice.c Fix the remaining instances of nexted SMARTLIST_FOREACH 2012-07-17 10:41:24 -04:00
rendservice.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
rephist.c Triage the XXX023 and XXX022 comments: postpone many. 2012-06-15 15:07:52 -04:00
rephist.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
router.c Merge remote-tracking branch 'public/bug4657' 2012-06-05 10:20:44 -04:00
router.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
routerlist.c Refactor smartlist_choose_node_by_bandwidth to be less horrible. 2012-08-09 12:59:04 -04:00
routerlist.h Resolve about 24 DOCDOCs 2012-06-05 00:17:54 -04:00
routerparse.c Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3 2012-08-03 11:18:40 -04:00
routerparse.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
status.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
status.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
tor_main.c Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00
transports.c Don't do DNS lookups when parsing corrupted managed proxy messages. 2012-06-25 13:19:22 -04:00
transports.h Update copyright dates to 2012; add a few missing copyright statements 2012-06-04 20:58:17 -04:00