Commit Graph

287 Commits

Author SHA1 Message Date
emanuele-f
09707660a1 Print available Windows TAP devices after help 2019-06-30 20:06:07 +02:00
emanuele-f
6d38d4bfb4 Fix adapter name length in windows 2019-06-30 19:10:51 +02:00
emanuele-f
69e1d50ca3 Implement selectable tap adapter in Windows 2019-06-30 18:37:48 +02:00
Logan008
bc260c2312 optimization to flexible AES keysize depending on input key size 2019-06-30 17:03:03 +02:00
Emanuele Faranda
c0bdf7053c
Add link to Routing.md 2019-06-30 14:28:45 +00:00
Emanuele Faranda
324dbe2e97
Merge pull request #149 from Logan008/dev
added more detailed routing information
2019-06-30 14:24:56 +00:00
Logan008
598d1e61f3 added more detailed routing information 2019-06-30 15:38:25 +02:00
emanuele-f
41bff29df6 Disable multicast peers discovery in windows 2019-06-22 16:50:11 +02:00
emanuele-f
32f757922c Add warning when community and encryption keys match 2019-06-22 15:46:46 +02:00
emanuele-f
65c81612ca Fix typo 2019-06-21 01:42:57 +02:00
emanuele-f
f88db76e10 Update readme 2019-06-21 01:37:57 +02:00
emanuele-f
425b2bf0b8 Improve readme and add basic routing information 2019-06-21 01:27:43 +02:00
Emanuele Faranda
b7379a0ef1
Simplify and update readme 2019-06-20 22:40:49 +00:00
emanuele-f
b19232bc7a Drop privileges by default for edge nodes and add root warning 2019-06-19 01:14:54 +02:00
emanuele-f
636c57768f Create n2n user and use in the supernode service 2019-06-19 00:45:47 +02:00
emanuele-f
4ca0ae34a4 Remove keyfile leftover 2019-06-17 09:54:53 +02:00
Emanuele Faranda
645181345f
Merge pull request #137 from Teteros/fix-typo
Fix typo: 'enstablished' -> 'established'
2019-06-13 13:24:31 +00:00
Teteros
ba38ab70de
Fix typo: 'enstablished' -> 'established' 2019-06-13 14:11:57 +01:00
emanuele-f
e7aa70ac87 Load arguments from file on windows too 2019-06-13 13:22:52 +02:00
Emanuele Faranda
ba26ff5ea5
Merge pull request #136 from HorseLuke/fix-win-sn-uint-1906
Fix: MSVC error C2065: "uint": Undeclared identifier.
2019-06-13 11:21:36 +00:00
horseluke
6647194537 Fix: function setOption pass wrong argument to load_allowed_sn_community
See issue #135
2019-06-13 16:22:21 +08:00
horseluke
1c67672746 Fix: MSVC error C2065: "uint": Undeclared identifier. 2019-06-13 15:43:24 +08:00
emanuele-f
0d4115005d Remove DLL 2019-06-10 16:12:55 +02:00
emanuele-f
365dd29b12 Remove unused field in peer_info 2019-06-10 09:35:13 +02:00
emanuele-f
1d03f9ba59 Purge idle communities 2019-06-10 09:32:06 +02:00
emanuele-f
03281648b4 Reduce message verbosity 2019-06-10 01:42:25 +02:00
emanuele-f
a4a974c34d Supernode clean shutdown 2019-06-10 01:42:25 +02:00
emanuele-f
d247c0a73c Keep supernode communities in separate hash 2019-06-10 01:42:21 +02:00
emanuele-f
447c3ad8c3 Replace peers linked list with hash 2019-06-10 00:33:11 +02:00
emanuele-f
b5c59c0e56 Update uthash to version 2.1.0 2019-06-10 00:33:11 +02:00
emanuele-f
4eacea7d57 Little improvement 2019-06-10 00:32:38 +02:00
emanuele-f
f36814b152 Implement query peer to try p2p during send
When a lot of monodirection traffic is sent, p2p can be hard to
enstablish because a reply is needed in order to start the registration.
Now a sending peer can query the peer information via the supernode.

This is based on the following commits:
- 1236f37a70
- ad2d416510
- 5348671299
- b2806dcde8
2019-06-08 22:04:10 +02:00
emanuele-f
b36754eae0 Set last_p2p ib peer_set_p2p_confirmed 2019-06-08 21:41:28 +02:00
emanuele-f
3db1cab276 Split broadcast stats from other supernode stats 2019-06-08 18:49:47 +02:00
emanuele-f
0e6db6361e Fix connection stall when idle p2p refresh occurs
The edge received packets from the supernode and thought that the other
peer was still active, but the other peer had dropped the p2p connection
due to refresh
2019-06-08 17:50:48 +02:00
emanuele-f
f038f22a0b Fix too many registrations going on 2019-06-08 16:10:00 +02:00
emanuele-f
623a9e480c Improve log messages 2019-06-08 15:32:47 +02:00
emanuele-f
a89e6b913d Fix cmake build and add n2n 32bit DLL 2019-06-08 13:14:16 +02:00
Emanuele Faranda
90bcee24e5
Merge pull request #122 from fengdaolong/dev
eliminate compilation warnings
2019-06-03 16:50:19 +00:00
fengdaolong
69e3b49bec eliminate compilation warnings 2019-06-04 00:09:15 +08:00
emanuele-f
d76cb64d0f Fix seed debug print 2019-06-03 10:16:42 +02:00
lucaderi
86870a781e Removed PRIx64, a C99 feature 2019-06-03 07:43:49 +02:00
emanuele-f
f33907ebd8 Fix seed debug print on 32bit platforms 2019-06-03 00:40:35 +02:00
emanuele-f
41e9e04083 Fix invalid service enabled 2019-05-31 10:33:36 +02:00
Emanuele Faranda
61799a96ae
Merge pull request #110 from realjiangms/fix_reliable_punch
Fix supernode handling REGISTER message from edge and let edge ask su…
2019-05-23 14:25:20 +00:00
yunbox
f48c170c26 Fix supernode handling REGISTER message from edge and let edge ask supernode to forward REGISTER message in case of non-p2p-reflection.
This is reliable way to PUNCH UDP HOLE (following STUN spec)
2019-05-23 19:24:27 +08:00
emanuele-f
3aec02d3e6 Fix unidirectional P2P connection due to pending registration
If A is directly available and B is NATted and B sends the first message to A via the supernode S,
A will try to register to B via the port used by B to talk to S. This will not work as B is NAT-ted,
so A must discard such pending registration as soon as it receives a P2P Registration from B.
2019-05-23 00:46:29 +02:00
emanuele-f
fb813e5438 Fix "invalid transop ID" when encryption is disabled 2019-05-22 23:30:05 +02:00
emanuele-f
52d33ed880 Fix missing destination MAC in REGISTER preventing proper P2P
As explained in #109
2019-05-22 23:04:27 +02:00
Jiang Zihao
0edca7e16a Fix purge_expired_registrations to accept passed-in last_purge instead of static function var. 2019-05-22 22:46:23 +02:00