emanuele-f
77392f8e53
Add check for SO_REUSEPORT
Fixes #51
6 years ago
emanuele-f
5f4dfdc683
Reduce the registration timeout to keep the connection open
6 years ago
emanuele-f
37233553a4
Fixes packet drops while communicating with multiple nodes in AES PSK
Per-node AES structures must be kept as CBC cannot work with a single structure across multiple nodes
6 years ago
Chris Sheely
ba0ecabbf6
Submit minor changes to enable Windows CMake builds w/o further mods.
6 years ago
emanuele-f
e4601590aa
Add -A option to enable AES CBC psk encryption
6 years ago
emanuele-f
e07ae72c17
Fix multicast self registration
Trace: (192.168.1.10/AE:C4:1F:99:D7:16 is the edge node itself)
02/Dec/2018 23:01:44 [edge_utils.c:175] Registering with multicast group 224.0.0.68:1968
02/Dec/2018 23:01:44 [edge_utils.c:533] send REGISTER 224.0.0.68:1968
02/Dec/2018 23:01:44 [edge_utils.c:463] sendto sent=36 to
02/Dec/2018 23:01:44 [edge_utils.c:1500] Received packet from multicast socket
02/Dec/2018 23:01:44 [edge_utils.c:1296] ### Rx N2N UDP (36) from 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:1341] Rx REGISTER src=AE:C4:1F:99:D7:16 dst=00:00:00:00:00:00 from peer 192.168.1.10:48122 (192.168.1.10:48122)
02/Dec/2018 23:01:44 [edge_utils.c:567] send REGISTER_ACK 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:463] sendto sent=36 to
02/Dec/2018 23:01:44 [edge_utils.c:1296] ### Rx N2N UDP (36) from 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:1367] Rx REGISTER_ACK src=AE:C4:1F:99:D7:16 dst=AE:C4:1F:99:D7:16 from peer 192.168.1.10:48122 (192.168.1.10:48122)
02/Dec/2018 23:01:44 [edge_utils.c:266] set_peer_operational: AE:C4:1F:99:D7:16 -> 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:318] Failed to find sender in pending_peers.
6 years ago
emanuele-f
7fd1778d7c
Fix packets from clients being routed when routing is disabled
6 years ago
Luca Deri
1c7b14995b
When multiple supernodes are specified, the edge registers to all of them
6 years ago
Luca Deri
3acd7a0e89
Implemented local peer discovery over multicast. In case two peers are on the same network
edge detects it and bypsses the supernode
deri@Lucas-iMac.local 132> ping 192.168.254.126
PING 192.168.254.126 (192.168.254.126): 56 data bytes
64 bytes from 192.168.254.126: icmp_seq=0 ttl=64 time=84.314 ms <<== via supernode
64 bytes from 192.168.254.126: icmp_seq=1 ttl=64 time=0.989 ms <<== local network announce detected
64 bytes from 192.168.254.126: icmp_seq=2 ttl=64 time=0.642 ms
64 bytes from 192.168.254.126: icmp_seq=3 ttl=64 time=0.727 ms
^C
--- 192.168.254.126 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.642/21.668/84.314/36.169 ms
6 years ago
Luca Deri
57b728a4dd
Improved multicast edge registation
6 years ago
Luca Deri
dd899b3a4d
Initial work for local multicast registering (work in progress)
6 years ago
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
6 years ago
Luca Deri
1888a0c55a
Merge of https://github.com/ntop/n2n/pull/26
6 years ago
switch_st
8c608ec3c4
bug fix
6 years ago
switch_st
463538a8df
Add support for Android
7 years ago
Luca Deri
b6fdae38b9
Added termination variable to edge loop
7 years ago
Luca Deri
b00f329a31
Code cleanup
7 years ago
Luca Deri
85ac185781
Code rework
7 years ago
Luca Deri
41401a131f
Minor code cleanup
7 years ago
Luca Deri
7b07636281
Refreshed copyright and added contributors list
7 years ago
Luca Deri
415f6b0a72
Minor code cleanup
Fixed compilation issue on OSX
7 years ago
Luca Deri
b1e9ce6d2a
Initial SVN import of n2n v2
8 years ago