aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert NACK'd fixes for 0.7.2.Luke Dashjr2012-11-161-1/+1
| | | | | | | | | This reverts commits: - 220de9aafbdb76fa620531fc5c0b01ffa6616d7b Qt: small header changes / fixes - caeafd1bd1b217276005c6bb422136f379d881cf fix some double-spaces in strings - deb9f100a04dbb9c25d6ba320eba4c653a2f5423 fix some double-spaces in strings - 65cee0bbbdea49c08bc84be7824ab004cc19f57e don't use memset() in privacy/security relevant code parts - ff31f1fa10e2062465520ad8a3ff846c23b7a96f don't use memset() in privacy/security relevant code parts
* Merge branch '0.6.x' into 0.7.xLuke Dashjr2012-11-141-1/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/bitcoinrpc.cpp src/crypter.h src/main.cpp src/qt/bitcoin.cpp src/qt/qtipcserver.cpp src/util.cpp
| * Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-11-141-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/init.cpp src/main.cpp src/serialize.h
| | * don't use memset() in privacy/security relevant code partsPhilip Kaufmann2012-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As memset() can be optimized out by a compiler it should not be used in privacy/security relevant code parts. OpenSSL provides the safe OPENSSL_cleanse() function in crypto.h, which perfectly does the job of clean and overwrite data. For details see: http://www.viva64.com/en/b/0178/ - change memset() to OPENSSL_cleanse() where appropriate - change a hard-coded number from netbase.cpp into a sizeof()
| * | Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-121-1/+1
| |/
| * Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-121-1/+1
| |
| * Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | Conflicts: src/key.h src/keystore.h src/net.h src/protocol.cpp src/qt/guiutil.h src/test/DoS_tests.cpp
| * Update License in File HeadersFordy2012-05-201-1/+1
| | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
| * Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsignedJeff Garzik2012-04-171-4/+4
| |
| * Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-171-1/+1
| | | | | | | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* | add LOCK() for proxy related data-structuresPhilip Kaufmann2012-10-041-12/+29
| | | | | | | | | | | | | | | | | | - fix #1560 by properly locking proxy related data-structures - update GetProxy() and introduce GetNameProxy() to be able to use a thread-safe local copy from proxyInfo and nameproxyInfo - update usage of GetProxy() all over the source to match the new behaviour, as it now fills a full proxyType object - rename GetNameProxy() into HaveNameProxy() to be more clear
* | Merge pull request #1793 from Diapolo/fix_signed_unsigned_strprintfWladimir J. van der Laan2012-09-211-2/+2
|\ \ | | | | | | fix signed/unsigned in strprintf and CNetAddr::GetByte()
| * | fix signed/unsigned in strprintf and CNetAddr::GetByte()Philip Kaufmann2012-09-121-2/+2
| | | | | | | | | | | | | | | | | | - I checked every occurance of strprintf() in the code and used %u, where unsigned vars are used - the change to GetByte() was made, as ip is an unsigned char
* | | Trim trailing whitespace for src/*.{h,cpp}Jeff Garzik2012-09-181-4/+4
|/ /
* | Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-011-4/+4
| |
* | Fix OBO in socks5 auth proposal. This fixes compatibility with openssh's ↵Douglas Huff2012-07-071-1/+1
| | | | | | | | socks5 proxy and tor's .2.3.x branch.
* | Rewrite CNetAddr::GetReachabilityFrom()Pieter Wuille2012-06-231-30/+73
| | | | | | | | Add support for Tor/I2P networks, and make code more readable.
* | Node support for Tor hidden servicesPieter Wuille2012-06-231-15/+76
| | | | | | | | | | | | 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-4/+2
| | | | | | | | | | * 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
* | Merge pull request #1399 from sipa/ipparseGavin Andresen2012-06-181-43/+26
|\ \ | | | | | | Improve parsing of IPv6 addresses
| * | Improve parsing of IPv6 addressesPieter Wuille2012-06-141-43/+26
| | | | | | | | | | | | | | | | | | | | | Implement the following rules: * Interpret [X]:Y as host=X port=Y, if Y is an integer * Interpret X:Y as host=X port=Y, if Y is an integer and X contains no colon * Interpret X:Y as host=X:Y port=default otherwise
* | | Merge branch 'signbugs' of https://github.com/wizeman/bitcoinGavin Andresen2012-06-181-2/+2
|\ \ \ | |/ / |/| | | | | Resolved minor conflict in main.cpp
| * | Make CNetAddr::GetHash() return an unsigned val.Ricardo M. Correia2012-05-131-2/+2
| | | | | | | | | | | | | | | | | | This prevents an undefined operation in main.cpp, when shifting the hash value left by 32 bits. Shifting a signed int left into the sign bit is undefined in C++11.
* | | fix two signed/unsigned comparison warnings in netbase.cppPhilip Kaufmann2012-06-051-2/+2
| | |
* | | Rework network config settingsPieter Wuille2012-05-311-42/+77
| | |
* | | Update License in File HeadersFordy2012-05-181-1/+1
| | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
* | | Use getnameinfo() to get canonical IPv6 addressesPieter Wuille2012-05-141-1/+13
|/ /
* | Merge pull request #1277 from Diapolo/IPv6_IPv4_stringsJeff Garzik2012-05-121-0/+2
|\ \ | | | | | | use "IPv6" and "IPv4" in strings as these are the official spellings
| * | use "IPv6" and "IPv4" in strings as these are the official spellings and ↵Philip Kaufmann2012-05-131-0/+2
| | | | | | | | | | | | make ParseNetwork() in netbase.cpp case-insensitive
* | | Only check for port# after : in ConnectSocketByNamePieter Wuille2012-05-131-6/+8
|/ /
* | Separate listening sockets, -bind=<addr>Pieter Wuille2012-05-111-47/+56
| |
* | Use NET_ identifiers in CNetAddr::GetGroup()Pieter Wuille2012-05-111-6/+6
| |
* | Add -noproxy to circumvent proxy for some networkPieter Wuille2012-05-111-1/+7
| |
* | Limited relaying/storing of foreign addressesPieter Wuille2012-05-111-0/+25
| | | | | | | | | | | | | | Introduce a boolean variable for each "network" (ipv4, ipv6, tor, i2p), and track whether we are likely to able to connect to it. Addresses in "addr" messages outside of our network get limited relaying and are not stored in addrman.
* | Preliminary support for Tor/I2P hidden servicesPieter Wuille2012-05-111-1/+13
| | | | | | | | | | | | | | | | | | | | | | There are plans to let Bitcoin function as Tor/I2P hidden service. To do so, we could use the established encoding provided by OnionCat and GarliCat (without actually using those tools) to embed Tor/I2P addresses in IPv6. This patch makes these addresses considered routable, so they can travel over the Bitcoin network in 'addr' messages. This will hopefully make it easier to deploy real hidden service support later.
* | IPv6 node supportPieter Wuille2012-05-111-11/+43
| | | | | | | | | | | | This will make bitcoin relay valid routable IPv6 addresses, and when USE_IPV6 is enabled, listen on IPv6 interfaces and attempt connections to IPv6 addresses.
* | Clean up warningsPieter Wuille2012-05-091-3/+3
| | | | | | | | | | | | * Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters * Remove xCXXFLAGS usage in makefile.unix * Fix several recent and older sign-compare warnings
* | Support for multiple local addressesPieter Wuille2012-05-041-0/+23
| |
* | Support connecting by hostnames passed to proxy (-proxydns)Pieter Wuille2012-05-041-7/+51
| |
* | refactor ConnectSocketPieter Wuille2012-05-041-9/+25
| |
* | SOCKS5 connect via hostnamePieter Wuille2012-05-041-26/+9
| |
* | SOCKS5 support by defaultPieter Wuille2012-05-041-28/+167
| | | | | | | | | | Add -socks=<n> to select SOCKS version to use. 4 and 5 are supported, 5 is default.
* | Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsignedJeff Garzik2012-04-151-4/+4
| |
* | Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-151-1/+1
|/ | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* CAddrMan: stochastic address managerPieter Wuille2012-02-241-3/+10
| | | | | | | | | Design goals: * Only keep a limited number of addresses around, so that addr.dat does not grow without bound. * Keep the address tables in-memory, and occasionally write the table to addr.dat. * Make sure no (localized) attacker can fill the entire table with his nodes/addresses. See comments in addrman.h for more detailed information.
* fix typo in CNetAddr::IsRFC4843() (fixes #850)Wladimir J. van der Laan2012-02-171-1/+1
|
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Fix handling of default portsPieter Wuille2012-01-171-8/+10
|
* Merge branch 'keepnode' of https://github.com/TheBlueMatt/bitcoinGavin Andresen2012-01-161-3/+15
|\
| * Add -keepnode which attempts to -addnode and keep a connection openMatt Corallo2012-01-121-3/+15
| |