| Commit message (Expand) | Author | Age |
* | Fix a compile warning on 64bit OS X | Sebastian Hahn | 2011-11-23 |
* | apparently or_options_t likes being a const in master | Roger Dingledine | 2011-11-21 |
* | Merge branch 'maint-0.2.2'•••Conflicts:
src/or/dirserv.c
| Roger Dingledine | 2011-11-21 |
|\ |
|
| * | parameterize bw cutoffs to guarantee Fast and Guard flags•••Now it will be easier for researchers to simulate Tor networks with
different values. Resolves ticket 4484.
| Roger Dingledine | 2011-11-21 |
* | | trivial code cleanup in generate_v2_networkstatus_opinion() | Roger Dingledine | 2011-11-16 |
* | | Fix a check-spaces complaint | Sebastian Hahn | 2011-11-02 |
* | | Resolve a crash when running as dirauth•••When we're asked for our own descriptor, don't crash.
| Sebastian Hahn | 2011-11-02 |
* | | Merge branch 'maint-0.2.2_secfix' into master_secfix•••Conflicts:
src/common/tortls.c
src/or/connection_or.c
src/or/dirserv.c
src/or/or.h
| Sebastian Hahn | 2011-10-27 |
|\| |
|
| * | Add option to give guard flag to relays without the CVE-2011-2768 fix•••This way, all of the DA operators can upgrade immediately, without nuking
every client's set of entry guards as soon as a majority of them upgrade.
Until enough guards have upgraded, a majority of dirauths should set this
config option so that there are still enough guards in the network. After
a few days pass, all dirauths should use the default.
| Robert Ransom | 2011-10-26 |
| * | Don't give the Guard flag to relays without the CVE-2011-2768 fix | Robert Ransom | 2011-10-26 |
* | | Add percentiles to the desc stats reporting•••To get a better idea what's going on on Tonga, add some code to report
how often the most and least frequently fetched descriptor was fetched,
as well as 25, 50, 75 percentile.
Also ensure we only count bridge descriptors here.
| Sebastian Hahn | 2011-10-25 |
* | | Add new stats type: descriptor fetch stats•••This is used for the bridge authority currently, to get a better
intuition on how many descriptors are actually fetched from it and how
many fetches happen in total.
Implements ticket 4200.
| Sebastian Hahn | 2011-10-21 |
* | | remove code related to tracking descriptor serving times•••This had broken due to bitrot - it doesn't know about microdescriptors
at all, and afaik hasn't generally been used in ages.
| Sebastian Hahn | 2011-10-21 |
* | | Fix names of functions that convert strings to addrs•••Now let's have "lookup" indicate that there can be a hostname
resolution, and "parse" indicate that there wasn't. Previously, we
had one "lookup" function that did resolution; four "parse" functions,
half of which did resolution; and a "from_str()" function that didn't
do resolution. That's confusing and error-prone!
The code changes in this commit are exactly the result of this perl
script, run under "perl -p -i.bak" :
s/tor_addr_port_parse/tor_addr_port_lookup/g;
s/parse_addr_port(?=[^_])/addr_port_lookup/g;
s/tor_addr_from_str/tor_addr_parse/g;
This patch leaves aton and pton alone: their naming convention and
behavior is is determined by the sockets API.
More renaming may be needed.
| Nick Mathewson | 2011-10-11 |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
src/or/dirserv.c
src/or/networkstatus.c
Conflicts were related to routerinfo->node shift.
| Nick Mathewson | 2011-09-07 |
|\| |
|
| * | Merge remote-tracking branch 'public/bug2649_squashed' into maint-0.2.2 | Nick Mathewson | 2011-09-07 |
| |\ |
|
| | * | Add a VoteOnHidServDirectoriesV2 configuration option | Robert Ransom | 2011-06-03 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-07-01 |
|\| | |
|
| * | | Use strlcpy when copying node IDs into measured_bw_line_t•••We were using strncpy before, which isn't our style for stuff like
this.
This isn't a bug, though: before calling strncpy, we were checking
that strlen(src) was indeed == HEX_DIGEST_LEN, which is less than
sizeof(dst), so there was no way we could fail to NUL-terminate.
Still, strncpy(a,b,sizeof(a)) is an idiom that we ought to squash
everyplace.
Fixes CID #427.
| Nick Mathewson | 2011-07-01 |
| |/ |
|
* | | Make the get_options() return const•••This lets us make a lot of other stuff const, allows the compiler to
generate (slightly) better code, and will make me get slightly fewer
patches from folks who stick mutable stuff into or_options_t.
const: because not every input is an output!
| Nick Mathewson | 2011-06-14 |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
src/or/dirserv.c
| Nick Mathewson | 2011-06-02 |
|\| |
|
| * | Fix unit test failure in dir/formats•••options->DirPort is 0 in the unit tests, so
router_get_advertised_dir_port() would return 0 so we wouldn't pick a
dirport. This isn't what we want for the unit tests. Fixes bug
introduced in 95ac3ea5946.
| Sebastian Hahn | 2011-06-02 |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••The conflicts were mainly caused by the routerinfo->node transition.
Conflicts:
src/or/circuitbuild.c
src/or/command.c
src/or/connection_edge.c
src/or/directory.c
src/or/dirserv.c
src/or/relay.c
src/or/rendservice.c
src/or/routerlist.c
| Nick Mathewson | 2011-05-30 |
|\| |
|
| * | Log descriptions of nodes, not just nicknames.•••This patch introduces a few new functions in router.c to produce a
more helpful description of a node than its nickame, and then tweaks
nearly all log messages taking a nickname as an argument to call these
functions instead.
There are a few cases where I left the old log messages alone: in
these cases, the nickname was that of an authority (whose nicknames
are useful and unique), or the message already included an identity
and/or an address. I might have missed a couple more too.
This is a fix for bug 3045.
| Nick Mathewson | 2011-05-15 |
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
src/or/config.c
src/or/dirserv.c
src/or/or.h
| Nick Mathewson | 2011-05-13 |
|\| |
|
| * | Advertise correct DirPort/ORPort when configured with "auto"•••We'll eventually want to do more work here to make sure that the ports
are stable over multiple invocations. Otherwise, turning your node on
and off will get you a new DirPort/ORPort needlessly.
| Nick Mathewson | 2011-05-13 |
* | | Merge remote-tracking branch 'public/bug3122_memcmp_022' into bug3122_memcmp_023•••Conflicts in various places, mainly node-related. Resolved them in
favor of HEAD, with copying of tor_mem* operations from bug3122_memcmp_022.
src/common/Makefile.am
src/or/circuitlist.c
src/or/connection_edge.c
src/or/directory.c
src/or/microdesc.c
src/or/networkstatus.c
src/or/router.c
src/or/routerlist.c
src/test/test_util.c
| Nick Mathewson | 2011-05-11 |
|\| |
|
| * | Hand-tune the new tor_memcmp instances in 0.2.2 | Nick Mathewson | 2011-05-11 |
| * | Re-apply the automated conversion to 0.2.2 to make handle any memcmps that sn... | Nick Mathewson | 2011-05-11 |
| * | Merge remote-tracking branch 'public/3122_memcmp_squashed' into bug3122_memcm...•••Conflicts throughout. All resolved in favor of taking HEAD and
adding tor_mem* or fast_mem* ops as appropriate.
src/common/Makefile.am
src/or/circuitbuild.c
src/or/directory.c
src/or/dirserv.c
src/or/dirvote.c
src/or/networkstatus.c
src/or/rendclient.c
src/or/rendservice.c
src/or/router.c
src/or/routerlist.c
src/or/routerparse.c
src/or/test.c
| Nick Mathewson | 2011-05-11 |
| |\ |
|
| | * | Hand-conversion and audit phase of memcmp transition•••Here I looked at the results of the automated conversion and cleaned
them up as follows:
If there was a tor_memcmp or tor_memeq that was in fact "safe"[*] I
changed it to a fast_memcmp or fast_memeq.
Otherwise if there was a tor_memcmp that could turn into a
tor_memneq or tor_memeq, I converted it.
This wants close attention.
[*] I'm erring on the side of caution here, and leaving some things
as tor_memcmp that could in my opinion use the data-dependent
fast_memcmp variant.
| Nick Mathewson | 2011-05-11 |
| | * | Automated conversion of memcmp to tor_memcmp/tor_mem[n]eq•••This commit is _exactly_ the result of
perl -i -pe 's/\bmemcmp\(/tor_memcmp\(/g' src/*/*.[ch]
perl -i -pe 's/\!\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch]
perl -i -pe 's/0\s*==\s*tor_memcmp\(/tor_memeq\(/g' src/*/*.[ch]
perl -i -pe 's/0\s*!=\s*tor_memcmp\(/tor_memneq\(/g' src/*/*.[ch]
git checkout src/common/di_ops.[ch]
git checkout src/or/test.c
git checkout src/common/test.h
| Nick Mathewson | 2011-05-11 |
* | | | Replace _AUTHORITY enum values with _DIRINFO values (automted) | Nick Mathewson | 2011-05-05 |
* | | | Automated rename from authority_type_t to dirinfo_type_t•••We were already overloading this type to mean "a directory that can
serve us X" in addition to "a directory that is an authority for X."
| Nick Mathewson | 2011-05-05 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-05-04 |
|\| | |
|
| * | | Handle crypto_pk_get_digest failures semi-sensibly•••Fixes bug 3106.
| Robert Ransom | 2011-05-04 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-04-28 |
|\| | |
|
| * | | Clarify comment to say which version fixed 2722 | Nick Mathewson | 2011-04-28 |
| * | | Add an XXX to the DA code regarding bug 2722 | Robert Ransom | 2011-04-18 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
src/common/address.c
src/common/compat_libevent.c
src/common/memarea.c
src/common/util.h
src/or/buffers.c
src/or/circuitbuild.c
src/or/circuituse.c
src/or/connection.c
src/or/directory.c
src/or/networkstatus.c
src/or/or.h
src/or/routerlist.c
| Nick Mathewson | 2011-04-07 |
|\| | |
|
| * | | Triage the XXX022 and XXX021 comments remaining in the code•••Remove some, postpone others, leave some alone. Now the only
remaining XXX022s are ones that seem important to fix or investigate.
| Nick Mathewson | 2011-03-25 |
* | | | Merge remote branch 'origin/maint-0.2.2'•••Fix trivial add/add conflict in main.c
Conflicts:
src/or/main.c
| Nick Mathewson | 2011-03-14 |
|\| | |
|
| * | | Merge remote branch 'arma/bug2716' into maint-0.2.2 | Nick Mathewson | 2011-03-14 |
| |\ \ |
|
| | * | | fix one more typo | Roger Dingledine | 2011-03-13 |
| | * | | Tweak bug2716 patch a little•••Name the magic value "10" rather than re-deriving it.
Comment more.
Use the pattern that works for periodic timers, not the pattern that
doesn't work. ;)
| Nick Mathewson | 2011-03-12 |
| | * | | improve accuracy for when a relay went unreachable | Roger Dingledine | 2011-03-11 |
* | | | | Merge remote branch 'origin/maint-0.2.2' | Nick Mathewson | 2011-03-11 |
|\| | | |
|
| * | | | Use observed instead of declared uptime for HSDir•••It is important to verify the uptime claim of a relay instead of just
trusting it, otherwise it becomes too easy to blackhole a specific
hidden service. rephist already has data available that we can use here.
Bugfix on 0.2.0.10-alpha.
| Sebastian Hahn | 2011-03-11 |
| |/ / |
|
* | | | Merge remote branch 'origin/maint-0.2.2'•••Resolved trivial one-line conflicts.
Conflicts:
src/or/dirserv.c
src/or/rephist.c
| Nick Mathewson | 2011-03-08 |
|\| | |
|
| * | | Merge remote branch 'sebastian/bug1035' into maint-0.2.2 | Nick Mathewson | 2011-03-08 |
| |\ \ |
|