Phenom
91a35f4a21
Change some code according G10h4ck remarks.
2021-11-06 00:32:36 +01:00
Phenom
81d2ddd7c7
Enable IPv6 DNS ExtIpFinder
...
Now empty node with only IPv6 can connect to other.
2021-11-05 22:48:41 +01:00
csoler
251d022ae1
attempt to fix error in setting external port when guessing external IP
2021-02-04 22:22:21 +01:00
csoler
6c83b5cd27
added double check in ext IP hack to avoid re-calling UpdateOwnAdress()
2021-02-04 16:12:18 +01:00
csoler
d87de5121a
small fix to make setLocalAddress() and setExtAddress() also call mPeerMgr-UpdateOwnAddresses()
2021-02-03 23:35:23 +01:00
csoler
67cf8baf77
added early check of ExtAddrFinder and notify about its results
2021-02-03 22:36:24 +01:00
csoler
3d958a7592
moved event to the right place for detecting change in local address
2020-11-11 22:43:07 +01:00
csoler
9a2749dbe5
added flags to invite system to unify the different variables and made sure the HomePage contains at least current IP (not fully tested)
2020-11-09 22:42:28 +01:00
sehraf
26fdd79b50
Merge remote-tracking branch 'RetroShare/master' into pr_rsconfig
2020-10-04 20:25:06 +02:00
hunbernd
6863f4cc70
Fix hidden node crashing at the startup, caused by calling uninitialized objects.
2020-06-21 21:55:52 +02:00
sehraf
f019a71472
only use external up from DHT stunner as fallback when no other source provides a valid IP
2020-02-15 17:51:22 +01:00
sehraf
3f5dcecc4d
convert RSNET_NETSTATE to enum class
2020-02-10 19:51:09 +01:00
sehraf
acda7b8cc4
convert RSNET_CONNECT to enum class
2020-02-10 19:51:09 +01:00
sehraf
d310102808
convert RSNET_NATHOLE to enum class
2020-02-10 19:51:09 +01:00
sehraf
f81755e320
convert RSNET_NATTYPE to enum class
2020-02-10 19:51:09 +01:00
sehraf
0237531322
convert RSNET_NETWORK to enum class
2020-02-10 19:51:09 +01:00
sehraf
6f9d875fc6
* unify CONFIG option for DHT stunner
...
* implement optional (turned off by default) usage of dht stunner to determin external ip (this can be usefull for some corner case setups)
2020-02-09 20:31:17 +01:00
Gioacchino Mazzurco
6b71c57a54
Calm down p3netmgr at least when internet connection is not available
...
Solve compiler warnings, delete tons of cruft and deadcode
2019-09-29 17:59:32 +02:00
Gioacchino Mazzurco
6788ea041a
Avoid netReset() if no network address is available
2019-09-28 18:42:13 +02:00
Gioacchino Mazzurco
e5805e9047
Avoid external port being reset without necessity
...
Fix RetroSahre behaviour when manually configured external port is
different to local port
2018-10-24 05:39:31 +02:00
Gioacchino Mazzurco
329050a9c2
Use safer rstime_t instead of time_t
...
Avoid problems to serialization on different platforms, without breaking
nested STL containers serialization.
The conversion have been made with sed, and checked with grep, plus
kdiff3 visual ispection, plus rutime tests, so it should be fine.
2018-10-07 13:07:06 +02:00
csoler
6848a586f3
merged upstream/master
2018-07-08 21:17:48 +02:00
Gioacchino Mazzurco
1dd707710b
Merge branch 'master' into extra_locators_merge
2018-07-02 12:22:23 +02:00
cyril soler
8edb1f7535
fixed problem causing infinite loop of net reset in p3NetMgr
2018-06-08 14:32:56 +02:00
csoler
b3277824eb
license fix in pqi
2018-05-28 22:03:39 +02:00
Gioacchino Mazzurco
1ad1fdc7be
p3NetMgrIMPL::checkNetAddress() notify if port change
...
Plus cleanups and proper sockaddr_storage copy
2018-05-22 19:17:37 +02:00
Gioacchino Mazzurco
9fbf56e592
Remove outdated misleading comment
2018-03-03 01:55:49 +01:00
Gioacchino Mazzurco
ac8b56951c
Enforce main IPv4 usage for better retrocompatibility
2018-02-26 08:49:06 +01:00
Gioacchino Mazzurco
4a138e07b9
Implement IPv6 listening
...
With this commit IPv6-v3 surpass v0.6-IPv6-2 in term of features
obsoleting it.
p3BitDht handle gracefully unwanted non IPv4 addresses
rsUdpStack handle gracefully unwanted non IPv4 addresses
pqissludp handle gracefully unwanted non IPv4 addresses
Move single address limitation workaround from
p3discovery2::sendOwnContactInfo to better
place p3PeerMgrIMPL::UpdateOwnAddress this way local address list is
queried less often and only id there is some suggestion that it may
have changed (probably ir will not be called all the times there is a
changes in local network interfaces but is good enough)
Implement crossplatform rs_setsockopt to avoid too much ifdef around
Implement sockaddr_storage_copy to safely copy sockaddr_storage objects
2018-02-24 17:14:49 +01:00
Gioacchino Mazzurco
4fa6bdc789
Improve discovery
...
Workaround RS single local address flawed assumption by spreading
all viables local addrresses via discovery
Spread addresses also through hidden node as they are the only hope
to help direct connection happening for common trusted nodes
behind nasty firewalls
2018-02-23 02:10:58 +01:00
Gioacchino Mazzurco
2044a2c848
Use retrocompatible iterators
...
Explain why shuffling the local addresses list before looking for
a viable local is a bad idea.
2018-02-21 12:35:27 +01:00
Gioacchino Mazzurco
0c99975800
Use link local address only if necessary
...
This should solve APIPA address being always selected as preferred local
address on Windows which was causing problems connecting to machines on
the same local network.
Now the link local address is used as fallback only if there is non link
local private address available.
2018-02-19 23:23:15 +01:00
csoler
fcc3995d87
removed BanList service from Retro-Tor version
2018-01-01 15:49:49 +01:00
Phenom
d21b41f871
Fix CppCheck in p3netmgr.cc
...
/libretroshare/src/pqi/p3netmgr.cc:926: warning:
Cppcheck(unreadVariable): Variable 'title' is assigned a value that is
never used.
/libretroshare/src/pqi/p3netmgr.cc:1808: warning:
Cppcheck(unreadVariable): Variable 'connectstr' is assigned a value that
is never used.
2017-11-05 18:25:36 +01:00
Phenom
9148fa6645
Fix clang warning: unused variables 'RS_NET_DOWN', ...
...
/libretroshare/src/pqi/p3netmgr.cc:60: warning: unused variable
'RS_NET_DOWN' [-Wunused-const-variable]
const uint32_t RS_NET_DOWN = 0x0007;
/libretroshare/src/pqi/p3netmgr.cc:63: warning: unused variable
'RS_STUN_DHT' [-Wunused-const-variable]
const uint32_t RS_STUN_DHT = 0x0001;
/libretroshare/src/pqi/p3netmgr.cc:64: warning: unused variable
'RS_STUN_DONE' [-Wunused-const-variable]
const uint32_t RS_STUN_DONE = 0x0002;
/libretroshare/src/pqi/p3netmgr.cc:65: warning: unused variable
'RS_STUN_LIST_MIN' [-Wunused-const-variable]
const uint32_t RS_STUN_LIST_MIN = 100;
/libretroshare/src/pqi/p3netmgr.cc:66: warning: unused variable
'RS_STUN_FOUND_MIN' [-Wunused-const-variable]
const uint32_t RS_STUN_FOUND_MIN = 10;
/libretroshare/src/pqi/p3netmgr.cc:70: warning: unused variable
'MAX_NETWORK_INIT' [-Wunused-const-variable]
const uint32_t MAX_NETWORK_INIT = 70; /* timeout before network
reset */
/libretroshare/src/pqi/p3netmgr.cc:72: warning: unused variable
'MIN_TIME_BETWEEN_NET_RESET' [-Wunused-const-variable]
const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5;
2017-07-16 21:18:22 +02:00
csoler
0d7df568b4
moved rsconfigitems and rshistoryitems to rsitems/
2017-04-24 22:47:08 +02:00
Phenom
674b6de381
Fix Some gcc warnings 383 to 208 lines
...
Left explicit #warning and deprecated.
Some lines are wrong indented and produce mal formed code.
2016-11-30 22:01:01 +01:00
sehraf
5d962682e1
removed unused variable warnings
2016-06-21 14:02:52 +02:00
sehraf
4d2d825d5b
add new option to qmake to enable dht stunner
...
removed dht stunner code when option is not set
2016-06-21 13:55:23 +02:00
sehraf
09afbbed5d
switched to new rslog method
2016-06-18 13:00:15 +02:00
Phenom
a1ece16f35
Fix uninitialized variables netsize, rsnetsize in p3netmgr.cc
2016-05-12 20:00:44 +02:00
csoler
39b3df964a
fixed bug causing net reset when closing config
2016-01-25 22:39:20 -05:00
Gio
3cfa22e35b
Guard checkNetAddress debug, unary + comment clarification
2015-12-29 23:51:16 +01:00
Gio
436f619fcb
getLocalAddresses collects loopback address too
2015-12-21 17:34:53 +01:00
Gioacchino Mazzurco
747a03a0b9
Substitute getpreferredinterface flawed logic with simpler getLocalAddresses still just one address used at moment
2015-12-21 09:10:00 +01:00
csoler
24b3325792
Improved reliability of the determination of external address: removed DHT stunner from the pool, added mPeerMgr which vote is based on ext address most often reported by peer discovery
2015-09-23 21:45:15 -04:00
csoler
f360e9d0ba
fixed password handling in deferred signature algorithm (in case of cancel, enter wrong passphrase, etc)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8423 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-12 21:04:11 +00:00
csoler
91bf1d6cb2
improved voting for extr address, and make sure DHTStunner does not return a banned IP
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8408 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-10 19:15:07 +00:00
csoler
ea7a5a5929
fixed bug causing false alarms of wrong reported IP from friends.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8385 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-06 13:50:11 +00:00
csoler
96cccbbc75
added hability to disconnect friends which report our own IP as something different than what we know. Removed a test in discovery2 that prevented sending info to a peer about himself. Not active yet since it needs some testing
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8340 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-01 22:03:07 +00:00