emanuele-f
447c3ad8c3
Replace peers linked list with hash
2019-06-10 00:33:11 +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
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
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
emanuele-f
49fd9fc5da
Discard idle known_peers to avoid connection blocking on disconnection
...
Fixes #103
2019-05-05 23:48:48 +02:00
emanuele-f
824b45a808
Add linux termination handler and print stats on shutdown
2019-05-05 21:47:50 +02:00
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.
2019-05-05 21:24:53 +02:00
emanuele-f
856dbae44c
Cosmetic changes to improve edge registration tracing
2019-05-05 19:09:51 +02:00
emanuele-f
c89ece71ca
Code rework changes
...
- Remove keyschedule leftover and adapt to new API
- Fix cleanup functions
- Remove unused random_device_mac
2019-04-27 15:55:07 +02:00
emanuele-f
f577d997a7
Drop keyschedule support
...
- Legacy features are now moved to the legacy directory with readme
- Keyschedule feature is not supported anymore
2019-04-27 12:42:06 +02:00
emanuele-f
e757f94efa
Initial code rework (wip)
...
- The edge structure is now opaque
- The configuration is now exposed via an API
- Code cleanup: using multiple transops at once is not supported anymore
2019-04-27 01:56:57 +02:00
emanuele-f
d689691599
n2n.h cleanup
2019-04-14 18:08:51 +02:00
emanuele-f
49d5ecf2a8
Reduce duplicated code in quick_edge_init
2019-04-14 17:21:47 +02:00
Chris Sheely
ba0ecabbf6
Submit minor changes to enable Windows CMake builds w/o further mods.
2019-02-11 16:49:37 -05:00
emanuele-f
e4601590aa
Add -A option to enable AES CBC psk encryption
2019-01-28 00:27:54 +01:00
Luca Deri
a80fa1dd27
Added configure and autogen.sh
2018-10-07 11:37:19 +02:00
Luca Deri
dd899b3a4d
Initial work for local multicast registering (work in progress)
2018-09-28 22:32:36 +00:00
Luca Deri
fd356cde64
Added the ability to specify (-c) on the supernode the list of allowed communities
...
kill -HUP on the supernode lists the registered edges
2018-09-28 22:31:45 +02:00
switch_st
463538a8df
Add support for Android
2018-06-12 02:59:13 +08:00
Luca Deri
ae815c22e2
C++ fixes
2018-06-08 14:01:33 +02:00
Luca Deri
b6fdae38b9
Added termination variable to edge loop
2018-06-08 12:01:03 +02:00
Luca Deri
b00f329a31
Code cleanup
2018-06-08 08:19:06 +02:00
Luca Deri
85ac185781
Code rework
2018-06-08 00:17:42 +02:00
Luca Deri
7b07636281
Refreshed copyright and added contributors list
2018-06-06 09:57:31 +02:00
Luca Deri
415f6b0a72
Minor code cleanup
...
Fixed compilation issue on OSX
2018-06-06 09:26:08 +02:00
Luca Deri
b1e9ce6d2a
Initial SVN import of n2n v2
2016-10-23 10:46:15 +02:00