Asim Aslam
7b1f5584ab
Tunnel mode
2019-10-15 15:40:04 +01:00
Asim Aslam
f77df51f60
Support reconnects
2019-10-13 18:36:22 +01:00
Milos Gajdos
21469a0427
Clean up dead tunnel code
...
Running go vet on tunnel package returns:
$ go vet ./...
./default.go:929:2: unreachable code
./link.go:104:2: unreachable code
./listener.go:184:2: unreachable code
./session.go:241:2: unreachable code
2019-10-11 11:02:45 +01:00
Asim Aslam
2e1432d5dc
wait for response on accept message
2019-10-07 18:29:49 +01:00
Asim Aslam
9e33637213
Do not log send/recv body
2019-09-25 20:24:56 +01:00
Asim Aslam
3d2bf7d4f6
Add log message
2019-09-25 12:36:07 +01:00
Asim Aslam
6c2b9d7636
Keep track of errors and delete beyond error count > 3
2019-09-25 12:14:09 +01:00
Asim Aslam
a6668ae057
Move delete link log message
2019-09-12 17:40:47 -07:00
Asim Aslam
2406ef9999
Missing fixes for the tunnel
2019-09-12 17:12:49 -07:00
Asim Aslam
97cf478f71
Add tunnel fixes for quic and keepalive
2019-09-12 16:22:43 -07:00
Asim Aslam
ec6a30be37
Links above Dial/Listen in interface
2019-09-11 12:49:27 -07:00
Asim Aslam
cb0de43dba
add link status
2019-09-11 12:12:11 -07:00
Asim Aslam
63d535aea9
Add link field to session
2019-09-11 12:07:43 -07:00
Asim Aslam
6819386e05
Remove dead link code
2019-09-11 12:00:55 -07:00
Asim Aslam
9ca7d90f11
link crufT
2019-09-11 07:11:40 -07:00
Asim Aslam
b5eea02f7a
Move link to tunnel/
2019-09-10 08:12:28 -07:00
Asim Aslam
ed1faa7a5c
Add a discover ticker, announce on connect and refactor
2019-09-05 18:13:02 +01:00
Asim Aslam
1527a84297
Shorten multicast discovery
2019-09-05 17:40:41 +01:00
Asim Aslam
d198765c6c
Put back close of listener
2019-09-05 15:23:19 +01:00
Asim Aslam
1840b5bd74
Update tunnel to send discovery on connect and multicast messages. Announce as broadcast
2019-09-05 15:16:11 +01:00
Asim Aslam
a1ba1482c5
Only set link if not multicast
2019-09-05 07:41:19 +01:00
Asim Aslam
cc5d811a83
add comment to tunnel link selection
2019-09-04 20:19:53 +01:00
Asim Aslam
e15389febb
Fix massive cruft in tunnel dial to set the link on discovered
2019-09-04 20:18:26 +01:00
Asim Aslam
d8a1b47954
Remove lock from link
2019-09-04 18:48:43 +01:00
Asim Aslam
b9a2f719a0
Add some fixes
2019-09-04 18:46:20 +01:00
Asim Aslam
407381912b
Don't try discover on multicast, don't block existing sessions on listen
2019-09-04 15:55:37 +01:00
Asim Aslam
d559ce9da2
Provide Links() method in Tunnel
2019-09-04 15:41:57 +01:00
Asim Aslam
7ab3934eb7
add message comment
2019-09-04 12:18:37 +01:00
Asim Aslam
0075477df0
make tunnel broker use multicast
2019-09-04 12:18:31 +01:00
Asim Aslam
d5be2136ad
cleanup new message creation
2019-09-04 12:16:31 +01:00
Asim Aslam
c718b8bf93
Move vars and comment
2019-09-04 12:00:11 +01:00
Asim Aslam
a24818ee54
Fix typo
2019-09-04 11:58:25 +01:00
Asim Aslam
66db0ac52c
Move announce into session
2019-09-04 11:58:03 +01:00
Asim Aslam
b9c437fbfe
Tunnel discover/announce/open/session/close
2019-09-04 09:48:05 +01:00
Asim Aslam
6c7582a6be
Move message to session
2019-09-03 15:56:37 +01:00
Asim Aslam
2cdfed359f
Separate lookup nodes and setup nodes
2019-09-02 12:05:47 +01:00
Asim Aslam
0d94784e72
Add some tunnel comments
2019-08-31 17:32:20 +01:00
Asim Aslam
6fa9d7270f
Rename Tunnel ID to Channel
2019-08-30 20:05:00 +01:00
Milos Gajdos
e7d8cdda44
Avoid duplicate debug logs.
2019-08-29 16:58:07 +01:00
Asim Aslam
00ab58f61b
Fix loopback cruft
2019-08-29 12:42:27 +01:00
Asim Aslam
6ab86c9e57
Don't process unless connected, and only fire loopback messages back up the loopback
2019-08-28 23:12:22 +01:00
Asim Aslam
ca267f73de
add a tunnel broker
2019-08-24 09:46:55 +01:00
Milos Gajdos
99d39e743b
Lock when setting loopback flag and receiving keepalives
2019-08-22 16:31:37 +01:00
Asim Aslam
c2d85a6e1f
Add tunnel address
2019-08-21 12:55:10 +01:00
Asim Aslam
f8e68ae101
Add string method to tunnel
2019-08-20 17:21:35 +01:00
Asim Aslam
f848041c49
Add a message type to the tunnel
2019-08-20 17:20:21 +01:00
Milos Gajdos
7abdc68049
Fixed the race. Made wait channel boolean.
2019-08-16 15:40:35 +01:00
Milos Gajdos
c90e1ccb99
Fixed reconnect code; refactor tunnel tests.
2019-08-16 15:18:34 +01:00
Milos Gajdos
67215ae5da
Changed nodeLink to setupLink
2019-08-15 19:24:24 +01:00
Milos Gajdos
f120452d28
Monitor outbound links periodically and reconnect the failed links.
2019-08-15 18:18:58 +01:00