aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relaycell.c
AgeCommit message (Collapse)Author
2020-07-29Remove the connection_t.outbuf_flushlen fieldNick Mathewson
This was once used for rate-limiting, but now it's only for accounting. It hasn't served a useful purpose in a long time. Closes ticket 33097.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-20Code Style: Delete headers that are included twiceteor
These changes were created using the "make autostyle" from 32522, and then split into commits.
2019-05-22sendme: Always pop last SENDME digest from circuitDavid Goulet
We must not accumulate digests on the circuit if the other end point is using another SENDME version that is not using those digests like v0. This commit makes it that we always pop the digest regardless of the version. Part of #30428 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-22sendme: Validate v1 SENDMEs on both client and exit sideDavid Goulet
The validation of the SENDME cell is now done as the very first thing when receiving it for both client and exit. On failure to validate, the circuit is closed as detailed in the specification. Part of #30428 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-10-14Merge branch 'bug27772_squashed'Nick Mathewson
2018-10-14Use the correct function signatures in test_relaycell.cNick Mathewson
This is now officially an antipattern: please let's never copy a function declaration in two places again. That's what headers are for.
2018-09-21Split main.c into main.c and mainloop.cNick Mathewson
The main.c code is responsible for initialization and shutdown; the mainloop.c code is responsible for running the main loop of Tor. Splitting the "generic event loop" part of mainloop.c from the event-loop-specific part is not done as part of this patch.
2018-09-16Merge branch 'bug25573-034-typefix'Nick Mathewson
2018-09-16Fix duplicate declaration of pathbias_count_valid_cells.Nick Mathewson
2018-09-12Merge remote-tracking branch 'tor-github/pr/298'Nick Mathewson
2018-08-29Merge branch 'ticket25573-034' into ticket25573-masterMike Perry
2018-08-29Ticket #25573: Count TRUNCATED cells.Mike Perry
TRUNCATED cells were ignored while in path bias. Now they are obeyed, and cause us to tear down the circuit. The actual impact is minimal, since we would just wait around for a probe that would never arrive before. This commit changes client behavior.
2018-08-29Ticket #25573: Check half-opened stream ids when choosing a new oneMike Perry
Avoid data corrupton by avoiding mixing up old stream ids with new ones. This commit changes client behavior.
2018-08-29Ticket #25573: Track half-closed stream idsMike Perry
We allow their CONNECTEDs, RESOLVEDs, ENDs, SENDMEs, and DATA cells to not count as dropped until the windows are empty, or we get an END. This commit does not change behavior. It only changes CIRC_BW event field values.
2018-07-11Rename crypto.c to crypto_cipher.c (since that's all it still has.)Nick Mathewson
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-21Merge branch 'mikeperry_bug26214-rebased_squashed'Nick Mathewson
2018-06-21Bug 26214: Test updates.Mike Perry
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15Extract cell type and their queues into new headersNick Mathewson
Since packed_cell and destroy_cell exist only to be queued, they go in the same headers as the queues.
2018-06-15Split socks_request_t into its own header.Nick Mathewson
2018-06-15Extract crypt_path_t and relay_crypto_t into their own headersNick Mathewson
2018-06-15Extract {or,origin}_circuit_t into their own headersNick Mathewson
2018-06-15Split entry and edge_connection_t into their own headers.Nick Mathewson
2018-06-13Merge remote-tracking branch 'asn-github/bug26358'Nick Mathewson
2018-06-13Silence warning of relaycell/circbw tst.George Kadianakis
Shouldn't send RELAY_COMMAND_DATA cell with 0 stream id.
2018-06-01Bug 26259: Don't count 0-length RELAY_COMMAND_DATA in CIRC_BW OVERHEADMike Perry
This cell should be treated as invalid for purposes of CIRC_BW.
2018-05-14Bug 25903: TestsMike Perry
2017-11-04Revert "Make ClientDNSRejectInternalAddresses testing-only."Sebastian Hahn
This reverts commit 27fa4a98d23972213122fa99499efa4baebe49e3.
2017-09-07Make ClientDNSRejectInternalAddresses testing-only.Nick Mathewson
Undeprecate it; rename it to TestingClientDNSRejectInternalAddresses; add the old name as an alias; reject configurations where it is set but TestingTorNetwork is not; change the documentation accordingly. Closes tickets 21031 and 21522.
2017-03-15Run the copyright update script.Nick Mathewson
2016-06-11Add clang's -Wstring-conversion, and fix the one place it hitsNick Mathewson
2016-02-27Update the copyright year.Nick Mathewson
2015-01-16Merge branch 'bug8546_squashed'Nick Mathewson
Conflicts: src/or/connection.c src/or/or.h src/or/relay.c
2015-01-16Move entry_port_cfg_t fields in entry_connection_tNick Mathewson
Also rename some options for uniformity, and apply this script: @@ entry_connection_t *conn; @@ conn-> +entry_cfg. \( isolation_flags \| session_group \| socks_prefer_no_auth \| ipv4_traffic \| ipv6_traffic \| prefer_ipv6 \| cache_ipv4_answers \| cache_ipv6_answers \| use_cached_ipv4_answers \| use_cached_ipv6_answers \| prefer_ipv6_virtaddr \)
2015-01-08fix new mingw64 compilation warningsNick Mathewson
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-11-12Replace operators used as macro arguments with OP_XX macrosNick Mathewson
Part of fix for 13172
2014-04-02Unit tests for connection_edge_process_resolved_cellNick Mathewson
Also rename a function to be more accurate (resolve->resolved)