4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-14 05:56:06 +00:00
Commit Graph

591 Commits

Author SHA1 Message Date
3b783fbf97 move periodic switch maintenance into the router instead of its own goroutine 2018-06-06 23:10:33 -05:00
5dc0cb5544 move wire_encode_locator logic into getBytesForSig, since that's the only place it's used 2018-06-06 23:00:17 -05:00
1e7d34492d fix signature checks and add some TODO reminder comments 2018-06-06 22:39:22 -05:00
5fb33da3a2 remove old switch anc/hop/res code 2018-06-06 21:18:21 -05:00
6811759fc9 add new switchMsg struct to replace old anc/hop/res approach 2018-06-06 21:11:10 -05:00
690d29435d adjust link packet logic so they bypass the lifo stack and are delivered first 2018-06-06 17:44:10 -05:00
bbae9ff8e8 Merge pull request #92 from Arceliar/backpressure
Use backpressure instead of estimated bandwidth
2018-06-06 16:58:48 -05:00
fad6f6b50e remove udp.go 2018-06-06 16:57:36 -05:00
da928af361 fix sim and run gofmt 2018-06-06 16:49:23 -05:00
240841eb38 remove unused recursive search packets 2018-06-06 16:46:15 -05:00
1b89892610 remove UDP, to be replaced with a better implementation later 2018-06-06 16:40:35 -05:00
2f8aaa5c20 Merge pull request #102 from neilalexander/ifname
Fix IfName 'none'
2018-06-02 23:37:24 +01:00
6d9d01dae1 Fix IfName='none' 2018-06-02 23:29:06 +01:00
2e188917d8 Merge pull request #99 from Arceliar/iterdht
Switch to iterative DHT searches
2018-06-02 23:10:51 +01:00
b9ea5350c6 update search.go comments to describe the iterative approach 2018-06-02 16:45:45 -05:00
3e1ac81854 allow searches to start with nodes further from the destination than ourself 2018-06-02 16:39:34 -05:00
45abfafbba value instead of pointer types for search dest/mask 2018-06-02 16:33:58 -05:00
34939d4b18 update for wire format changes 2018-06-02 16:30:05 -05:00
b3b729804c Merge pull request #101 from neilalexander/wire
Export fields of wire structs
2018-06-02 16:24:06 -05:00
bbdcee1015 Export fields of sessionPing, dhtReq, dhtRes 2018-06-02 22:19:42 +01:00
49af65296d Export fields of wire structs 2018-06-02 21:21:05 +01:00
28e6c738e2 Merge branch 'master' into iterdht 2018-06-02 15:00:24 -05:00
09baad48e3 retry failed iterative searches, possibly becoming parallel if things are just slow, and keep track of / skip nodes that were already visited in the search 2018-06-02 14:57:06 -05:00
0f96fea3fc Merge pull request #100 from neilalexander/dotstyle2
Improve formatting of dot graph
2018-06-02 13:25:01 -05:00
bc37d4fb76 Improve formatting of dot: dashed grey for unknown nodes, sans-serif text 2018-06-02 14:24:06 +01:00
ed6c9c2a54 deduplicate dht responses when adding them to the search, limit the search toVisit size 2018-06-02 00:29:36 -05:00
10a72444e3 get itersearch to run in the sim 2018-06-02 00:16:47 -05:00
ecf7e490d7 start of iterative dht searches 2018-06-01 23:34:21 -05:00
dc841c550b Merge pull request #98 from Arceliar/dotstyle
Admin "dot" style changes
2018-06-01 20:57:24 -05:00
ec80a81ed5 Mark extrapolated nodes with dashed outline 2018-06-01 23:33:02 +01:00
e4082f218f Add text to dot graph explaining how a node is known 2018-06-01 23:23:24 +01:00
a2df5107f0 Change colour scheme: green for self, yellow for peer, blue for open session, white for DHT 2018-06-01 14:20:47 +01:00
ca15bbea57 try color coding dot output 2018-05-31 20:28:09 -05:00
887b463306 Merge pull request #97 from neilalexander/master
Set allowed encryption keys after start
2018-05-29 16:20:32 -05:00
027944a14a Set allowed encryption keys after start as otherwise hits a nil pointer exception 2018-05-29 22:15:54 +01:00
742eded4ff Merge pull request #96 from neilalexander/dedebug
Create Core API, remove DEBUG function calls
2018-05-29 16:01:23 -05:00
bfa281c0ae Add -tags debug to run-sim 2018-05-27 23:50:22 +01:00
ccf71af6b7 Move Init from core.go to debug.go as function is only for simulator 2018-05-27 23:37:57 +01:00
460a22c063 Clean up some exported constants 2018-05-27 23:31:34 +01:00
a9e61d0d37 Add support for building "release" builds that don't contain pprof which are substantially smaller. To build a "debug" build, use "-tags debug" with "go build" 2018-05-27 23:22:50 +01:00
e9b1006dda Remove final DEBUG calls from yggdrasil.go 2018-05-27 22:36:36 +01:00
35173e2388 Fix starting TUN read/write 2018-05-27 22:35:30 +01:00
4c115de633 De-debug 2018-05-27 22:13:37 +01:00
38e7704161 use backpressure instead of estimated bandwidth, sorted by uptime to break ties 2018-05-27 13:37:35 -05:00
707e23d392 Merge pull request #95 from Arceliar/tcpfix
fix npe, these don't need to be pointers
2018-05-27 13:28:51 -05:00
02ba9dc97c fix npe, these don't need to be pointers 2018-05-27 13:22:21 -05:00
5131d854e5 Merge pull request #94 from Arceliar/main-fixes
hjson bugfixes
2018-05-27 19:06:16 +01:00
7b12493417 panic if tcp startup fails, since otherwise a nil pointer occurs in multicast. make udp do the same thing. 2018-05-27 12:56:33 -05:00
e62cfa8c84 revert removal of useconffile 2018-05-27 12:31:35 -05:00
fcaabe4aac Fix some issues with hjson by converting to json then parsing to go struct, and remove useconffile option since it doesn't seem to add anything over stdin and increases the attack surface 2018-05-26 20:40:19 -05:00