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

485 Commits

Author SHA1 Message Date
1170ea9e98 Start linkloop 2019-01-05 00:52:41 +00:00
4363283a6f Notify switch idle 2019-01-05 00:32:28 +00:00
00bf71a09a Fight me Swift and your hexadecimal strings 2019-01-04 23:31:44 +00:00
5a36b4723a Add AWDL calls to exposed API, handle proto traffic first 2019-01-04 17:41:03 +00:00
3878197a59 gofmt 2019-01-04 17:23:37 +00:00
f29a098488 Add experimental dummy interface for AWDL 2019-01-04 17:14:40 +00:00
d10a0d6137 Add GenerateConfigJSON, fix StartJSON 2019-01-03 22:50:08 +00:00
f7b0a85b5e Add StartJSON 2019-01-02 23:15:36 +00:00
4ff3db2309 Add dummy tun, helper functions 2019-01-02 18:05:54 +00:00
53aeca8fa2 Add some simple functions for Swift bindings (iOS) 2019-01-01 23:25:20 +00:00
fb47c9822f getNodeInfo: Show own info if box_pub_key/coords not specified 2018-12-31 11:48:50 +00:00
4e03bdb054 Don't process ICMPv6 messages when in TUN mode 2018-12-26 22:45:21 +00:00
74692b689a Fix OpenBSD (tested and working on 6.4) 2018-12-26 12:25:28 +00:00
b3d6c9a385 Print when peermacs learned 2018-12-26 11:57:08 +00:00
9eeb482587 Use ICMPv6 NDP target instead of source address when populating peermacs 2018-12-26 11:51:21 +00:00
50ed92d6d2 insert a copy when calling dht.insertPeer 2018-12-26 00:18:51 -06:00
b66049c14f Typo fix
Typo fix in function's header comment.
2018-12-22 11:31:52 +02:00
0dfdc789d3 Merge pull request #275 from neilalexander/nodeinfomask
Allow hiding nodeinfo defaults
2018-12-22 08:54:37 +00:00
59093aa43b clean up node info immediately if it reaches the timeout or if it needs refreshing but won't be pinged due to being unimportant 2018-12-21 17:45:24 -06:00
f6b0075989 Case-insensitive checking of null if string, don't print the nodeinfo again 2018-12-21 10:04:32 +00:00
586deed0f9 Add NodeInfoPrivacy option for not including defaults, and also check for null/"null" instead of "hide" 2018-12-21 09:56:34 +00:00
f59852b1e1 adjust how dht throttle works, it should now back off faster, and back off even more if things are not in use 2018-12-20 20:16:51 -06:00
60549cfa09 Adds special keyword 'hide' for masking built-in nodeinfo defaults 2018-12-20 23:49:15 +00:00
dfcdafa55c move special peer/dht insert logic form router.go to dht.go 2018-12-20 17:37:59 -06:00
8ec4c66f65 Multithread the admin socket 2018-12-17 19:06:52 +00:00
6e87791e50 Merge pull request #256 from Arceliar/tcp
Minor TCP change
2018-12-17 10:20:23 +00:00
300f471bab don't SetKeepAlive[Period] on tcp connections, since the behavior is platform specific 2018-12-16 18:32:50 -06:00
db034ce6bd replace panics with warning messages if the tun reader/writer return an error 2018-12-16 17:23:07 -06:00
d9f212dd39 don't panic if we write to a closed tun device because tun.close() was called 2018-12-16 17:01:59 -06:00
28c7d75a20 fix conflicts with nodeinfo and update that for new crypto type names 2018-12-15 18:11:02 -06:00
89f9f5defb fix merge conflicts 2018-12-15 17:57:36 -06:00
e0ff3ca587 Rename Metadata to NodeInfo 2018-12-15 22:37:11 +00:00
226c72df16 Set max metadata size to 16kb 2018-12-15 13:18:35 +00:00
07c26176b6 Fix core.SetMetadata 2018-12-15 12:21:00 +00:00
9a5cf96c29 Rename admin socket getMeta to getMetadata 2018-12-15 12:18:52 +00:00
92bb63f196 Use metadata from config file 2018-12-15 11:38:51 +00:00
d9884a5cac Make use of metadata cache 2018-12-15 11:15:48 +00:00
d07e0ddfa0 Default metadata 2018-12-15 10:56:46 +00:00
8b63e841ea Make threadsafe, add cache 2018-12-15 10:39:31 +00:00
4875ab8954 peer thread safey for dhtInfo updates 2018-12-14 21:44:31 -06:00
570e85c297 remove debug code 2018-12-14 21:12:25 -06:00
ea4ca02681 fix code after moving address/crypto/util 2018-12-14 20:49:18 -06:00
cdd2e7910a Merge remote-tracking branch 'origin/develop' into metadata 2018-12-15 00:48:54 +00:00
d5031a5cb6 Metadata exchange without sessions 2018-12-15 00:48:27 +00:00
2c68d41409 move files, still need to fix exports and compile errors 2018-12-14 18:30:36 -06:00
abd8b69979 send a switch message immediately when peering, and use OS-level TCP keep-alive (shouldn't matter right now, since we have application-level keep-alive that preempts it, but important later) 2018-12-14 18:15:35 -06:00
f9dc300787 Define Adapter base type/interface 2018-12-14 18:29:00 +00:00
8045cb4dc3 Define generic adapter type, rename tunDevice to tunAdapter 2018-12-14 18:21:08 +00:00
f28360ce4d Fix debug builds (foiled by debug builds every time) 2018-12-14 18:10:39 +00:00
2a38ad07cd Don't send ICMPv6 back when tun disabled 2018-12-14 18:08:40 +00:00