aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_addr.c
AgeCommit message (Collapse)Author
2012-06-04Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson
2012-02-13Synchronize with upstream tinytest again: remove _identifiersNick Mathewson
2011-12-28Use getifaddrs, not connect+getsockname, to find our addressNick Mathewson
This resolves bug1827, and lets us avoid freaking people out. Later, we can use it to get a complete list of our interfaces.
2011-11-19Imporved unit test coverage for tor_inet_ptonAnders Sundman
2011-11-14Merge remote-tracking branch '4ZM/topic/test/4433_address'Nick Mathewson
2011-11-11Unit tests for tor_addr_to_strAnders Sundman
2011-11-11Unit tests for tor_addr_to_PTR_nameAnders Sundman
2011-11-11Unit tests for tor_inet_ntopAnders Sundman
2011-10-11Change "reverse_lookup_name" functions to refer to "PTR_name"sNick Mathewson
Under the new convention, having a tor_addr.*lookup function that doesn't do hostname resolution is too close for comfort. I used this script here, and have made no other changes. s/tor_addr_parse_reverse_lookup_name/tor_addr_parse_PTR_name/g; s/tor_addr_to_reverse_lookup_name/tor_addr_to_PTR_name/g;
2011-10-11Fix names of functions that convert strings to addrsNick Mathewson
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.
2011-06-14Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-06-09Upgrade to the latest version of tinytestNick Mathewson
2011-06-08Check some more return values in unit testsSebastian Hahn
2011-04-19Standardize our printf code on %d, not %i.Nick Mathewson
2011-01-03Bump copyright statements to 2011 (0.2.2)Nick Mathewson
2010-02-27Update copyright dates for files not in maint-0.2.1Nick Mathewson
2009-09-23Split directory tests into their own module.Nick Mathewson
(Also, clean up some whitespace.)
2009-09-23Split test_util() into smaller functions.Nick Mathewson
2009-09-23Split general util and address tests into their own files.Nick Mathewson