summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-10-31Change some comments to reflect the multitude of GeoIP databases.Linus Nordberg
2012-10-31Don't memcmp struct in6_addr but rather its s6_addr member.Linus Nordberg
2012-10-31Duplicate less code.Linus Nordberg
2012-10-22Name variables more consistently.Linus Nordberg
2012-10-22Document two functions.Linus Nordberg
2012-10-20Rename C reserved identifiers missed before.Linus Nordberg
2012-10-20Add "IPVersions" to control command "status/clients-seen".Linus Nordberg
2012-10-20Duplicate less code.Linus Nordberg
2012-10-20Separate IPv4 and IPv6 geoip file loading.Linus Nordberg
Also add IPv6 geoip file digest to extra info. Also also, add support for IPv6 addresses in control command "ip-to-country".
2012-10-17White space.Linus Nordberg
2012-10-17Two changes lost in rebase resurrected.Linus Nordberg
2012-10-17Rename reserved C identifiers.Linus Nordberg
2012-10-17Update geoip6.Linus Nordberg
2012-10-17Minor tweaks to nils' v4 vs v6 bridge usage code.Karsten Loesing
2012-10-17Minor tweaks and comments to nils' geoip v6 code.Karsten Loesing
2012-10-17Include statistics as to how many connections are IPv4 versus IPv6nils
2012-10-17Add GeoIP database for IPv6 addressesnils
2012-10-17Rename address family specific IPv4 geoip functions in preparation for IPv6 ↵nils
support
2012-10-15Merge branch 'bug7087' of git://git.torproject.org/user/andrea/torAndrea Shepard
2012-10-15Add debug logging for channel_free() and channel_force_free()Andrea Shepard
2012-10-15Correctly clear cmux policies and free cmux in channel_free() and ↵Andrea Shepard
channel_force_free()
2012-10-14Merge remote-tracking branch 'arma/bug7029'Nick Mathewson
2012-10-13fix trivial typoRoger Dingledine
2012-10-12typo in src/ext/README; caught by rransom (thanks!)Nick Mathewson
2012-10-12Fix whitespace in aes.cNick Mathewson
2012-10-12Move strlcpy and strlcat into src/ext tooNick Mathewson
2012-10-12Distribute src/ext/README.Nick Mathewson
2012-10-12Add a README file for the src/ext directory.Nick Mathewson
2012-10-12Make tor_addr_is_internal log the calling function on errorNick Mathewson
This might make it a little easier to track down bug 7086.
2012-10-12Install correct incoming cell handlers on reachability testing channelsAndrea Shepard
Fix for bug 7086.
2012-10-11Merge branch 'move_contrib_source' of git://git.torproject.org/nickm/torAndrea Shepard
2012-10-11Move all externally maintained source files into src/extNick Mathewson
The rationale for treating these files differently is that we should be checking upstream for changes as applicable, and merging changes upstream as warranted.
2012-10-11Make very sure to handle cells in-order on channels.Nick Mathewson
Fix on code for 6465, not yet in any release.
2012-10-10Merge branch 'bug7011'Nick Mathewson
Conflicts: src/or/circuitbuild.c The conflict was trivial, since no line of code actually changed in both branches: There was a fmt_addr() that turned into fmt_addrport() in bug7011, and a "if (!n_conn)" that turned into "if (!n_chan)" in master.
2012-10-10Use fmt_addrport in pt_get_extra_info_descriptor_string.David Fifield
This patch is by asn. https://trac.torproject.org/projects/tor/ticket/7011#comment:11
2012-10-10Use fmt_addrport where appropriate.David Fifield
This is mostly a conversion from this pattern: log("... %s:%d ...", fmt_and_decorate_addr(&addr), port); to this: log("... %s ...", fmt_addrport(&addr, port)); The output is the same in all cases.
2012-10-10Add fmt_addrport.David Fifield
This function formats an addr:port pair, and always decorates IPv6 addresses.
2012-10-10Use fmt_and_decorate_addr in extra-info "transport" lines.David Fifield
Apparently BridgeDB is already expecting transport lines to be formatted thus; see https://trac.torproject.org/projects/tor/ticket/7011#comment:12 ff. It may be that there are no extant IPv6 pluggable transport bridges yet, so this didn't cause a problem.
2012-10-10Use fmt_and_decorate_addr in TransportProxy statefile entry.David Fifield
state_transport_line_is_valid calls tor_addr_port_lookup, which expects brackets around an IPv6 address. Without this, cached transport addresses can't be parsed later: [warn] state: Could not parse addrport. [warn] state: State file seems to be broken. See #7011.
2012-10-10Decorate addresses given to a HTTP CONNECT proxy.David Fifield
This affects the Request-URI and the value of the Host header. RFC 2616 doesn't directly address the formatting of IPv6 addresses, but it delegates some productions to RFC 2396 "Uniform Resource Identifiers (URI): Generic Syntax," which is obsoleted by RFC 3986, which requires square brackets for IPv6 addresses in both places. I tested this with HTTPSProxy 127.0.0.1:8000 Bridge <IPv6 bridge> UseBridges 1 and an Ncat HTTP proxy: ncat --proxy-type http -l 8000 -vvv https://tools.ietf.org/html/rfc2616#section-3.2.1 https://tools.ietf.org/html/rfc2616#section-5.1.2 https://tools.ietf.org/html/rfc2616#section-14.23 https://tools.ietf.org/html/rfc3986#section-3.2.2
2012-10-10Use fmt_and_decorate_addr in log messages.David Fifield
2012-10-10Merge branch 'bug6816_squashed_nowarn' of git://git.torproject.org/nickm/torAndrea Shepard
2012-10-10Remove variables; fix gcc 4.7 warningsNick Mathewson
My GCC warns when variables are assigned to but never used. There were a few like that in the 6816/6465 branches.
2012-10-10Fix formatting in various places after 6465/6816 workAndrea Shepard
2012-10-10Make channel_flush_some_cells() compile cleanly on machines with ssize_t ↵Andrea Shepard
larger than int per sjumrdoch comment
2012-10-10Don't remove circuitmux hash table entries in circuitmux_detach_circuit() ↵Andrea Shepard
until after circuitmux_make_circuit_inactive()
2012-10-10Fix 'warning: circuit was already inactive' and assert in ↵Andrea Shepard
circuitmux_make_circuit_inactive() during circuitmux_detach_all_circuits()
2012-10-10Bring summary comment block in circuitmux.c up to dateAndrea Shepard
2012-10-10New and improved circuitmux_detach_all_circuits(), now without the stupidAndrea Shepard
2012-10-10Correctly set magic numbers on ewma policy data/circuit data when allocatingAndrea Shepard