aboutsummaryrefslogtreecommitdiff
path: root/src/test/netbase_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sourcesMarcoFalke2017-01-051-5/+3
|\ | | | | | | 73f4119 Refactoring: Removed using namespace <xxx> from bench/ and test/ source files. (Karl-Johan Alm)
| * Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.Karl-Johan Alm2017-01-021-5/+3
| |
* | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* net: Have LookupNumeric return a CService directlyCory Fields2016-08-041-4/+2
| | | | | | Also fix up a few small issues: - Lookup with "badip:port" now sets the port to 0 - Don't allow assert to have side-effects
* net: Add direct tests for new CSubNet constructorsCory Fields2016-07-311-1/+15
|
* net: Split resolving out of CSubNetCory Fields2016-07-311-71/+78
|
* net: Split resolving out of CNetAddrCory Fields2016-07-311-69/+85
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* [QA] fix netbase tests because of new CSubNet::ToString() outputJonas Schnelli2015-09-161-4/+2
|
* net: Fix CIDR notation in ToString()Wladimir J. van der Laan2015-09-161-0/+6
| | | | Only use CIDR notation if the netmask can be represented as such.
* net: use CIDR notation in CSubNet::ToString()Jonas Schnelli2015-09-161-0/+74
|
* add unit test for CNetAddr::GetGroup.Alex Morcos2015-08-191-0/+17
|
* Adding CSubNet constructor over a single CNetAddrJonas Schnelli2015-07-021-0/+11
|
* Fix two problems in CSubNet parsingWladimir J. van der Laan2015-05-261-0/+5
| | | | | | | | | | | | | | | Fix two CSubNet constructor problems: - The use of `/x` where 8 does not divide x was broken, due to a bit-order issue - The use of e.g. `1.2.3.4/24` where the netmasked bits in the network are not 0 was broken. Fix this by explicitly normalizing the netwok according to the bitmask. Also add tests for these cases. Fixes #6179. Thanks to @jonasschnelli for reporting and initial fix.
* tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+2
| | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* net: Add CSubNet class for subnet matchingWladimir J. van der Laan2014-05-091-0/+37
|
* Update moved and dead linksLuke Dashjr2014-03-241-1/+1
|
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-3/+2
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Node support for Tor hidden servicesPieter Wuille2012-06-231-1/+12
| | | | | | This commit adds support for .onion addresses (mapped into the IPv6 by using OnionCat's range and encoding), and the ability to connect to them via a SOCKS5 proxy.
* Fix netbase testsPieter Wuille2012-06-191-1/+0
| | | | | * Do not rely on "a.b.c" being interpreted as "a.0.b.c" * Parse numeric addresses for address families for which no device is configured
* Add netbase testsPieter Wuille2012-06-141-0/+92