aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
Commit message (Collapse)AuthorAge
* Add a RunTesting option to try to learn link state by creating test ↵Nick Mathewson2004-03-21
| | | | | | circuits, even when SocksPort is off. svn:r1327
* Integrate the new "rephist" [rep(utation) hist(ory)] module to traceNick Mathewson2004-03-20
| | | | | | | | | | | | | | successful/failed connections, successful/failed extends, and connection uptimes. It's still not done: more tests are needed, and not everything calls connection/circuit_mark_for_close properly. This skews the results. Also, there needs to be a 'testing' mode for non-OP ORs, where they periodically build circuits just to test whether extends work. svn:r1313
* Add initial history-tracking backend code for reputation module. Not called ↵Nick Mathewson2004-03-20
| | | | | | or tested yet. svn:r1310
* bugfix: decrement OR connections from global_bucket tooRoger Dingledine2004-03-14
| | | | | | | | bugfix: don't return immediately for has_pending_tls_data unless the conn is allowed to read svn:r1270
* refactor bandwidth-control token bucketsRoger Dingledine2004-03-14
| | | | | | | | this is a checkpoint commit; there still remain some bugs, er, somewhere. svn:r1269
* Make OP work on windows! (Also misc logging tweaks)Nick Mathewson2004-03-11
| | | | svn:r1258
* Get entropy in windows.Nick Mathewson2004-03-11
| | | | svn:r1257
* Make tor build on windows again. More work still neededNick Mathewson2004-03-09
| | | | svn:r1247
* re-try streams at most 4 timesRoger Dingledine2004-03-07
| | | | svn:r1242
* New, more flexible directory parsing backend. Uses a bit more RAM, but ↵Nick Mathewson2004-03-05
| | | | | | implements the new spec. Uses more RAM, but not so you would notice. svn:r1235
* Try to find out early if buffers get trashed or double-freed.Nick Mathewson2004-03-03
| | | | svn:r1225
* Implement hold_open_until_flushed. I may have missed something important.Nick Mathewson2004-03-03
| | | | svn:r1209
* make socks5 not give a spurious warningRoger Dingledine2004-03-03
| | | | | | | also rename AP_CONN_STATE_CONNECTING to _CONNECT_WAIT svn:r1208
* make circuit-building less noisy when a node in your exclude/exit/entrynodes ↵Roger Dingledine2004-03-03
| | | | | | is down svn:r1206
* Split out mark_for_close with circuits. Seems to work for me.Nick Mathewson2004-03-02
| | | | svn:r1197
* Fix assertion failure spotted by arma.Nick Mathewson2004-03-02
| | | | | | | | | | | Apparently, when a DNS failure was already cached, then when we tried to mark the exit connection as closed, we'd try to remove it from the pending queue anyway, and hit an assert. Now, we put failed-resolve connections in a separate state so that mark_for_close does the right thing. svn:r1196
* create a separate connection_edge_destroy() functionRoger Dingledine2004-02-29
| | | | svn:r1176
* bugfix: when we time out on a stream and detach, send an end firstRoger Dingledine2004-02-28
| | | | svn:r1175
* Split dns_cancel_pending_resolve into dns_cancel_pending_resolve (kill aNick Mathewson2004-02-28
| | | | | | | | resolve in response to a DNS worker dying) and connection_dns_remove (remove a pending connection from the resolve structure.) svn:r1168
* Stop trying to flush on broken sockets marked for close.Nick Mathewson2004-02-28
| | | | svn:r1163
* rename ExcludedNodes config option to ExcludeNodesRoger Dingledine2004-02-28
| | | | svn:r1155
* Push responsibility for connection marking down as far as possible; have ↵Nick Mathewson2004-02-28
| | | | | | only a close path; add some missing end cells; change return conventions a little. svn:r1149
* Refactor mark_for_close, connection_edge_end and friends. Now, everybodyNick Mathewson2004-02-27
| | | | | | | | | | | | | | | | who wants to shut down a connection calls connection_mark_for_close instead of setting marked_for_close to 1. This automatically removes the connection from the DNS cache if needed, sends a RELAY END cell if appropriate, and can be changed to do whatever else is needed. Still to do: - The same for circuits, maybe. - Add some kind of hold_connection_open_until_flushed flag, maybe. - Change stuff that closes connections with return -1 to use mark_for_close, maybe. svn:r1145
* Fix a bug where you might flush some data on a tls connection, and thenRoger Dingledine2004-02-27
| | | | | | | | | | add some more data to be flushed but never turn POLLOUT on. not sure how commonly this bug was hit, but it would be a doozy. Also add some asserts to see if it happens elsewhere. svn:r1142
* When it can't resolve any dirservers, it was useless from then on.Roger Dingledine2004-02-26
| | | | | | | | Now it reloads the RouterFile (or default dirservers) if it has no dirservers. svn:r1130
* when they use tor as an http proxy, give them an http 501 failureRoger Dingledine2004-02-26
| | | | svn:r1126
* if the default torrc isn't there, just use some default defaultsRoger Dingledine2004-02-26
| | | | | | | | | plus provide an internal dirservers file if they don't have one having no config files will make it easier to run on windows svn:r1124
* Basic RAM poisoning and magic-checking to notice connection and circuitNick Mathewson2004-02-25
| | | | | | | | corruption faster; also, check for corruption in dns.c so we can fail fast for the bug that's nailing Lucky and moria3. svn:r1123
* On OSX, decline to use the built-in select-baed poll wrapper, since it seems ↵Nick Mathewson2004-02-20
| | | | | | to sometimes not work. svn:r1114
* go back to a single exitpolicy parameterRoger Dingledine2004-02-18
| | | | | | | | | if your exitpolicy includes " *:*" then it is final, else we append the default exit policy. (thanks weasel) svn:r1105
* Get rid of the notion of a separate default default exit policy.Roger Dingledine2004-02-18
| | | | | | | | Create ExitPolicyPrepend config parameter, to customize the default exit policy. svn:r1103
* adding the reattach-after-timeout feature wasn't so easy after all.Roger Dingledine2004-02-18
| | | | | | | maybe it works now. svn:r1101
* Fix router_compare_addr_to_exit_policy, and name its return codes. The bug ↵Nick Mathewson2004-02-17
| | | | | | was: "maybe reject,accept" should be "maybe", not "accept". svn:r1093
* add an ap_conn connecting state; report connecting delayRoger Dingledine2004-01-20
| | | | svn:r1011
* add TOR_PERF macro optionsRoger Dingledine2004-01-20
| | | | svn:r1008
* split the token bucket into 'rate' and 'burst' paramsRoger Dingledine2004-01-10
| | | | | | | | | | | we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982
* Fix the dns bug: children weren't dyingRoger Dingledine2004-01-06
| | | | | | | | | | | | | | | We were telling a child to die by closing the parent's file descriptor to him. But newer children were inheriting the open file descriptor from the parent, and since they weren't closing them, the socket never closed, so the child never read eof, so he never knew to exit. As a side effect to this bug, we were probably failing to properly close connections to remote hosts, ORs, and OPs, after a dns child was born. I'm surprised Tor worked at all. svn:r974
* the onionskin challenge length was 30 bytes longer than necessaryRoger Dingledine2004-01-05
| | | | | | | (i think ;) svn:r971
* fix endian issue: rh.integrity was getting sent wrongRoger Dingledine2004-01-02
| | | | | | | now it's a char[4] rather than an int svn:r966
* checkpoint: revamp relay cell packaging and handlingRoger Dingledine2003-12-23
| | | | | | | | include the infrastructure for inserting padding cells when there's a relay-recognized conflict, but it does not work currently. svn:r958
* make sure there's no conflict when generating stream_idsRoger Dingledine2003-12-19
| | | | svn:r955
* rename circ_id_t to uint16_t for code clarityRoger Dingledine2003-12-19
| | | | | | | change message when using non-recommended tor version svn:r954
* make a relay_header_t struct and pack/unpack funcsRoger Dingledine2003-12-19
| | | | | | | | | | | | | | split 7-byte stream_id string into 2-byte recognized and 2-byte stream_id fix two seg faults in fetch_from_buf_http fix several lurking seg faults in handling unexpected relay cells still need to * clean up relay_crypt * use relay dummies if there's going to be a conflict with rh.recognized * check for a conflict when generating stream_ids svn:r953
* remove trailing whitespaceRoger Dingledine2003-12-17
| | | | svn:r951
* make fetch_from_buf_http malloc its strings ratherRoger Dingledine2003-12-17
| | | | | | | | | | than use fixed-size strings reorganize directory_handle_command so it'll be easier to do more with our directory servers svn:r950
* infrastructure for integrity-checks in relay cellsRoger Dingledine2003-12-16
| | | | | | | | make circuit_consider_sending_sendme use connection_edge_send_command fix endian bug in relay length handling (maybe) svn:r946
* move cell size to 512 bytesRoger Dingledine2003-12-16
| | | | | | | | | move length to 2 bytes, put it in the relay header remove 4 reserved bytes in cell add 4 bytes to relay header for the integrity check svn:r942
* add H(K|1) to the onionskin replyRoger Dingledine2003-12-16
| | | | | | | | | | verify it at the client end abstract the onionskin handshake lengths breaks backward compatibility (again) svn:r941
* start tracking the 'It appears I've already sent the end' warningRoger Dingledine2003-12-14
| | | | svn:r932
* change dns notation from question/answer to address/addrRoger Dingledine2003-12-14
| | | | svn:r929