emanuele-f
65c81612ca
Fix typo
5 years ago
emanuele-f
f88db76e10
Update readme
5 years ago
emanuele-f
425b2bf0b8
Improve readme and add basic routing information
5 years ago
Emanuele Faranda
b7379a0ef1
Simplify and update readme
5 years ago
emanuele-f
b19232bc7a
Drop privileges by default for edge nodes and add root warning
5 years ago
emanuele-f
636c57768f
Create n2n user and use in the supernode service
5 years ago
emanuele-f
4ca0ae34a4
Remove keyfile leftover
5 years ago
Emanuele Faranda
645181345f
Merge pull request #137 from Teteros/fix-typo
Fix typo: 'enstablished' -> 'established'
6 years ago
Teteros
ba38ab70de
Fix typo: 'enstablished' -> 'established'
6 years ago
emanuele-f
e7aa70ac87
Load arguments from file on windows too
6 years ago
Emanuele Faranda
ba26ff5ea5
Merge pull request #136 from HorseLuke/fix-win-sn-uint-1906
Fix: MSVC error C2065: "uint": Undeclared identifier.
6 years ago
horseluke
6647194537
Fix: function setOption pass wrong argument to load_allowed_sn_community
See issue #135
6 years ago
horseluke
1c67672746
Fix: MSVC error C2065: "uint": Undeclared identifier.
6 years ago
emanuele-f
0d4115005d
Remove DLL
6 years ago
emanuele-f
365dd29b12
Remove unused field in peer_info
6 years ago
emanuele-f
1d03f9ba59
Purge idle communities
6 years ago
emanuele-f
03281648b4
Reduce message verbosity
6 years ago
emanuele-f
a4a974c34d
Supernode clean shutdown
6 years ago
emanuele-f
d247c0a73c
Keep supernode communities in separate hash
6 years ago
emanuele-f
447c3ad8c3
Replace peers linked list with hash
6 years ago
emanuele-f
b5c59c0e56
Update uthash to version 2.1.0
6 years ago
emanuele-f
4eacea7d57
Little improvement
6 years ago
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
6 years ago
emanuele-f
b36754eae0
Set last_p2p ib peer_set_p2p_confirmed
6 years ago
emanuele-f
3db1cab276
Split broadcast stats from other supernode stats
6 years ago
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
6 years ago
emanuele-f
f038f22a0b
Fix too many registrations going on
6 years ago
emanuele-f
623a9e480c
Improve log messages
6 years ago
emanuele-f
a89e6b913d
Fix cmake build and add n2n 32bit DLL
6 years ago
Emanuele Faranda
90bcee24e5
Merge pull request #122 from fengdaolong/dev
eliminate compilation warnings
6 years ago
fengdaolong
69e3b49bec
eliminate compilation warnings
6 years ago
emanuele-f
d76cb64d0f
Fix seed debug print
6 years ago
lucaderi
86870a781e
Removed PRIx64, a C99 feature
6 years ago
emanuele-f
f33907ebd8
Fix seed debug print on 32bit platforms
6 years ago
emanuele-f
41e9e04083
Fix invalid service enabled
6 years ago
Emanuele Faranda
61799a96ae
Merge pull request #110 from realjiangms/fix_reliable_punch
Fix supernode handling REGISTER message from edge and let edge ask su…
6 years ago
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)
6 years ago
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.
6 years ago
emanuele-f
fb813e5438
Fix "invalid transop ID" when encryption is disabled
6 years ago
emanuele-f
52d33ed880
Fix missing destination MAC in REGISTER preventing proper P2P
As explained in #109
6 years ago
Jiang Zihao
0edca7e16a
Fix purge_expired_registrations to accept passed-in last_purge instead of static function var.
6 years ago
emanuele-f
59011308b2
Ignore invalid community when not received from supernode
The packet may be received from a multicast registration from a local peer.
Fixes #107
6 years ago
emanuele-f
381c795af5
Lower registration timeout to 1 minute
6 years ago
emanuele-f
04226c09c8
Fix compilation warnings and little leak
6 years ago
emanuele-f
bc904cfbcc
Skip localhost received sockets
6 years ago
emanuele-f
e2861e5f71
Fix send error in peer registration refresh
6 years ago
emanuele-f
49fd9fc5da
Discard idle known_peers to avoid connection blocking on disconnection
Fixes #103
6 years ago
emanuele-f
824b45a808
Add linux termination handler and print stats on shutdown
6 years ago
emanuele-f
d5387945b4
Add the -i option to specify registration interval on edge nodes
Registration is bound to UDP NAT hole punching, so the edges should choose their own value.
6 years ago
emanuele-f
856dbae44c
Cosmetic changes to improve edge registration tracing
6 years ago