aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-21Use new mock functions in buffer/time_tracking testNick Mathewson
2016-07-21Actually make monotonic time functions mockable.Nick Mathewson
This is different from making the functions mockable, since monotime_t is opaque and so providing mocks for the functions is really hard.
2016-07-21Revert "Make the monotonic{_coarse,}_get() functions mockable."Nick Mathewson
This reverts commit 2999f0b33fec8e91ba8e4680d3f9d03b09fe9501.
2016-07-21Make the monotonic{_coarse,}_get() functions mockable.Nick Mathewson
2016-07-19Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-19Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-07-19Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-07-19Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-07-19Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-07-19Merge branch 'monotonic_v2_squashed'Nick Mathewson
2016-07-19Be sure to call monotime_init() at startup.Nick Mathewson
2016-07-19Make sure initialized_at is initialized before use.Nick Mathewson
2016-07-19Changes file for monotonic time branch.Nick Mathewson
2016-07-19Unit tests for monotonic timeNick Mathewson
2016-07-19Expose monotonic time ratchet functions for testing.Nick Mathewson
2016-07-19Remove tor_gettimeofday_cached_monotonic as broken and unneededNick Mathewson
2016-07-19Use coarse monotonic timer instead of cached monotonized libevent time.Nick Mathewson
2016-07-19convert timers.c to use real monotonic time.Nick Mathewson
2016-07-19Basic portable monotonic timer implementationNick Mathewson
This code uses QueryPerformanceCounter() [**] on Windows, mach_absolute_time() on OSX, clock_gettime() where available, and gettimeofday() [*] elsewhere. Timer types are stored in an opaque OS-specific format; the only supported operation is to compute the difference between two timers. [*] As you know, gettimeofday() isn't monotonic, so we include a simple ratchet function to ensure that it only moves forward. [**] As you may not know, QueryPerformanceCounter() isn't actually always as monotonic as you might like it to be, so we ratchet that one too. We also include a "coarse monotonic timer" for cases where we don't actually need high-resolution time. This is GetTickCount{,64}() on Windows, clock_gettime(CLOCK_MONOTONIC_COARSE) on Linux, and falls back to regular monotonic time elsewhere.
2016-07-18Update geoip and geoip6 to the July 6 2016 database.Karsten Loesing
2016-07-17Keep make check-spaces happyAndrea Shepard
2016-07-17Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-17Merge remote-tracking branch 'weasel/bug19660' into maint-0.2.8Nick Mathewson
2016-07-17Fix warnings in test_util_formats.Nick Mathewson
Storing 255 into a char gives a warning when char is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha, where these tests were added.
2016-07-13Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-13changes file for bug18397Nick Mathewson
2016-07-13Merge remote-tracking branch 'Jigsaw52/seccomp-fix-18397' into maint-0.2.8Nick Mathewson
2016-07-11Add (SOCK_DGRAM, IPPROTO_UDP) sockets to the sandboxing whitelistPeter Palfrader
If we did not find a non-private IPaddress by iterating over interfaces, we would try to get one via get_interface_address6_via_udp_socket_hack(). This opens a datagram socket with IPPROTO_UDP. Previously all our datagram sockets (via libevent) used IPPROTO_IP, so we did not have that in the sandboxing whitelist. Add (SOCK_DGRAM, IPPROTO_UDP) sockets to the sandboxing whitelist. Fixes bug 19660.
2016-07-09Adds missing syscalls to seccomp filter.Daniel Pinto
Fixes #18397 which prevented tor starting with Sandbox 1.
2016-07-08Move our "what time is it now" compat functions into a new moduleNick Mathewson
I'm not moving our "format and parse the time" functions, since those have been pretty volatile over the last couple of years.
2016-07-08Fix test-network-all target in out-of-tree buildscypherpunks
The test-network-all target assumes the test-driver script lives in the current working directory. This assumption breaks out-of-tree builds because it actually lives in the source directory. Automake 1.12 introduces `LOG_DRIVER` which defines the location of the test driver script. Because Tor still supports Automake 1.11 we use the default value of this variable directly. The default value uses the configured shell for calling the test driver script and explicitly prefixes the source directory.
2016-07-08Merge remote-tracking branch 'sebastian/libevent2'Nick Mathewson
2016-07-07Remove already-merged changes files.Nick Mathewson
These changes files already are merged in release-0.2.8, and therefor will not be "new in 0.2.9.1-alpha".
2016-07-07Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-07Bump maint-0.2.8 to 0.2.8.5-rc-devNick Mathewson
2016-07-07Forward-port the 0.2.8.5-rc changelogNick Mathewson
2016-07-06test coverage on onion_fast: 0%->100%Nick Mathewson
2016-07-06Capture the LOG_ERR messages in our tests that had logged errors.Nick Mathewson
(It's confusing for the test to write an expected error to stdout, and then tell the user "OK".)
2016-07-06When saving mocked log messages, always create the list.Nick Mathewson
Otherwise, our code needs to check "list && smarlist_len(list)..."
2016-07-06Improve test coverage a little on onion*.cNick Mathewson
2016-07-06Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-06Fix sign in test-timersNick Mathewson
2016-07-06When checking if a routerstatus is reachable, don't check the nodeteor (Tim Wilson-Brown)
This fixes #19608, allowing IPv6-only clients to use microdescriptors, while preserving the ability of bridge clients to have some IPv4 bridges and some IPv6 bridges. Fix on c281c036 in 0.2.8.2-alpha.
2016-07-05Merge remote-tracking branch 'teor/bug18456'Nick Mathewson
2016-07-05Merge remote-tracking branch 'dgoulet/sr-test-fix'Nick Mathewson
2016-07-05Test: fix shared random test checking bad errnoDavid Goulet
The test was checking for EISDIR which is a Linux-ism making other OSes unhappy. Instead of checking for a negative specific errno value, just make sure it's negative indicating an error. We don't need more for this test. Signed-off-by: David Goulet <dgoulet@torproject.org>
2016-07-05Merge branch 'maint-0.2.8'Nick Mathewson
2016-07-05Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-07-05Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-07-05Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson