5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 13:00:47 +00:00

Commit Graph

  • b2607a7205
    Merge pull request #447 from Arceliar/bugfixes Arceliar 2019-07-01 19:09:36 -0500
  • 86c30a1fc4 fix another panic from a send on a closed session worker channel, from races between Conn.Read/Write/Close Arceliar 2019-07-01 18:55:07 -0500
  • cd29fde178 temporary workaround to concurrency bug in sessions.getSharedKey Arceliar 2019-06-29 19:32:15 -0500
  • fbe44ea973 fix bug in session api code Arceliar 2019-06-29 19:25:34 -0500
  • b8592669b8
    Merge pull request #446 from Arceliar/bugfixes Arceliar 2019-06-29 19:00:11 -0500
  • 40553a6a44 make GetSessions use the session workers to avoid races Arceliar 2019-06-29 18:56:26 -0500
  • d39428735d recover if we try to send to a closed session worker due to a race between a Conn.Write call and a Conn.Close call Arceliar 2019-06-29 18:50:21 -0500
  • 28db566b37 fix concurrency bug in iface.go Arceliar 2019-06-29 18:44:24 -0500
  • 0fb1165b76
    Merge pull request #445 from Arceliar/dial Arceliar 2019-06-29 17:48:12 -0500
  • 7d58a7ef3e fix channel multiple close bug and concurrency bug in the way sessionInfo.close was being called Arceliar 2019-06-29 17:44:28 -0500
  • 43bcb9e154
    Merge pull request #444 from Arceliar/dial Arceliar 2019-06-29 16:17:47 -0500
  • 818eca90db fix nil pointer deref if searches fail, block dial until a search exceeds or a timeout passes (todo: replace timer with context) Arceliar 2019-06-29 16:10:02 -0500
  • ca1f2bb0a2 add go-syslog to go.mod/go.sum Arceliar 2019-06-29 12:33:00 -0500
  • 8ecf99d8a9
    Merge pull request #443 from Arceliar/dial Arceliar 2019-06-29 12:21:19 -0500
  • 784acba823 I think this fixes the concurrent map read/write panic Arceliar 2019-06-29 12:14:44 -0500
  • 0d23342358
    Merge pull request #441 from Arceliar/dial Neil Alexander 2019-06-29 10:52:05 +0100
  • e88bef35c0 get rid of old buffered session packets Arceliar 2019-06-28 20:02:58 -0500
  • e7cb76cea3 clean up unused old session maps Arceliar 2019-06-28 19:21:44 -0500
  • c808be514f make tunAdapter.wrap return the right thing Arceliar 2019-06-28 19:11:28 -0500
  • 5df110ac79 make Dial block until the search finishes, and use it as such Arceliar 2019-06-28 18:42:31 -0500
  • ac8ff740ee
    Merge pull request #438 from neilalexander/multicast Neil Alexander 2019-06-29 00:38:38 +0100
  • 721a8b5d27
    Merge pull request #440 from neilalexander/logging Neil Alexander 2019-06-29 00:37:05 +0100
  • 23108e268b
    Use go-syslog to fix builds on Windows Neil Alexander 2019-06-29 00:32:23 +0100
  • 27b3b9b49b
    Return new copy of interfaces on each Interfaces() call Neil Alexander 2019-06-29 00:12:56 +0100
  • 93a323c62c
    Add support for logging to file or syslog instead of stdout Neil Alexander 2019-06-28 23:45:04 +0100
  • 29a0f8b572 some minor refactoring to dht callbacks and searches, work in progress Arceliar 2019-06-25 19:31:29 -0500
  • 54f1804101
    Try and solidify multicast interface behavior Neil Alexander 2019-06-20 15:11:55 +0100
  • 2fd3ac6837
    Merge pull request #432 from neilalexander/gatekeeper Neil Alexander 2019-06-13 23:41:42 +0100
  • 535ca06c07
    Merge pull request #431 from neilalexander/defaults Neil Alexander 2019-06-13 23:41:28 +0100
  • f545060e89
    Add notes on isSessionAllowed checks Neil Alexander 2019-06-13 23:37:53 +0100
  • 9a7d350884
    Fix expressions Neil Alexander 2019-06-11 23:48:00 +0100
  • ec5bb84975
    Try to build the new RPM using CircleCI Neil Alexander 2019-06-11 15:30:55 +0100
  • e229ad6e2b
    Update comments Neil Alexander 2019-06-11 12:52:13 +0100
  • 907986f200
    Implement session firewall as gatekeeper func in cmd/yggdrasil Neil Alexander 2019-06-11 12:50:01 +0100
  • 720a078a35
    Add SetSessionGatekeeper Neil Alexander 2019-06-11 10:52:21 +0100
  • 17175b49f2
    Add multicast interfaces to platform-specific defaults (this makes it easier to avoid bringing AWDL up by default on macOS as an example, or over L2 VPNs when not expected) Neil Alexander 2019-06-11 10:18:59 +0100
  • d4a3b2bc76
    Merge pull request #429 from Arceliar/sessionfix Neil Alexander 2019-06-11 10:07:52 +0100
  • 4b56849b08 fix issue with sessions dying and never being fixed Arceliar 2019-06-10 22:09:12 -0500
  • cab4b5f793
    Merge pull request #428 from Arceliar/readerror Arceliar 2019-05-31 17:56:53 -0500
  • 1addf08ccd don't have Conn.Read return an error for temorary crypto failures from e.g. out of order packets, just drop the packet and keep blocking until there's usable traffic Arceliar 2019-05-31 17:51:01 -0500
  • 7e837e97e9
    Merge pull request #427 from neilalexander/ckrenabled Neil Alexander 2019-05-31 11:33:07 +0100
  • f0422dbd8b
    Fix panic when determining if CKR is enabled Neil Alexander 2019-05-30 17:33:59 +0100
  • e430d16018
    Merge pull request #426 from neilalexander/errorhandle Neil Alexander 2019-05-30 12:52:35 +0100
  • 9e086e70f0
    Don't indefinitely block TUN/TAP reader goroutine when a conn error happens Neil Alexander 2019-05-30 12:44:47 +0100
  • 396c879d0f
    Merge pull request #425 from neilalexander/sessionmtu Neil Alexander 2019-05-29 20:19:41 +0100
  • 0096d1ae3e
    Re-add ICMPv6 packet too big handling Neil Alexander 2019-05-29 20:16:17 +0100
  • 75cc25b7f4
    Merge pull request #424 from neilalexander/sessionmtu Neil Alexander 2019-05-29 19:17:10 +0100
  • 3b6c726a3c
    Fix bug where MTU was ignored by sessions, resulting in default 1280 Neil Alexander 2019-05-29 19:11:12 +0100
  • 6b6266bfdd
    Merge pull request #419 from yggdrasil-network/modular Neil Alexander 2019-05-29 18:19:13 +0100
  • 78eb40cbad
    Record session uptime (purely for the admin socket) Neil Alexander 2019-05-29 12:59:36 +0100
  • b2513fce56 have the tunConn close things after a 2 minute timeout Arceliar 2019-05-28 18:35:52 -0500
  • 5ea864869a don't spam searches for unused connections. todo: timeout old connections somehow Arceliar 2019-05-23 20:27:52 -0500
  • 70774fc3de
    Reimplement get/setTunnelRouting, add/removeSourceSubnet, add/removeRoute, getRoutes, getSourceSubnets, make CKR threadsafe Neil Alexander 2019-05-20 21:45:33 +0100
  • 5b8d8a9341
    Reimplement getNodeInfo, dhtPing, get/add/removeAllowedEncryptionPublicKey, add/removePeer Neil Alexander 2019-05-20 19:51:44 +0100
  • e9e2d7bc6f
    Remove debug println Neil Alexander 2019-05-19 22:03:20 +0100
  • d575b83ec1
    Refactor admin socket somewhat, allow modules to set up their own handlers Neil Alexander 2019-05-19 22:02:04 +0100
  • 8ef1978cb1
    Start factoring out the admin socket into a separate module (not all functions implemented yet) Neil Alexander 2019-05-19 17:27:48 +0100
  • 7ca5a2533d
    Implement GetDHT, GetSwitchQueues, GetSessions Neil Alexander 2019-05-19 16:29:04 +0100
  • 8a6f6f3b2b
    Implement GetPeers and GetSwitchPeers API functions in Core, in preparation for breaking out the admin socket into a separate module Neil Alexander 2019-05-18 17:21:02 +0100
  • ce60609906
    Remove wrappedConn as unnecessary Neil Alexander 2019-05-18 16:16:32 +0100
  • 5b09b45572
    Merge pull request #416 from fifteenthcommotion/yggdrasil-brute-simple Neil Alexander 2019-05-18 12:28:49 +0100
  • 080052ce04 remove ygg-brute gitignore fifteenthcommotion 2019-05-18 04:25:57 -0700
  • 1b3ec0b93f
    Fix multicast start check so that it shouldn't give up if interfaces aren't up when Yggdrasil starts (fixes #405) Neil Alexander 2019-05-17 22:59:29 +0100
  • 2df62e2b9b
    Remove code that translates v0.2 config options (it was commented out anyway) Neil Alexander 2019-05-17 22:52:14 +0100
  • ae2cc13d14
    Fix configuration reloading support Neil Alexander 2019-05-17 22:29:52 +0100
  • 71ccaf753e
    Add crypto-key routing into TUN/TAP Neil Alexander 2019-05-17 22:09:20 +0100
  • 9c01947b1c reduce allocations in switch Arceliar 2019-05-16 18:10:47 -0500
  • 522ed147b1 use the subnet derived ID/mask when creating a connection based on a subnet address, fix a potential blocking channel send in tuntap/conn.go, and get debug.go compiling well enough to profile things (the sim is currently still broken) Arceliar 2019-05-15 18:01:26 -0500
  • 5bed78c7a7 add CC0 for good measure fifteenthcommotion 2019-05-12 12:40:45 -0700
  • db85a11194 unlicense and spacing perfectionism fifteenthcommotion 2019-05-12 02:18:03 -0700
  • 5a3c730097 contribute decently fast yggdrasil address generator in C fifteenthcommotion 2019-05-11 16:31:46 -0700
  • efdaea1b5e fix some races and GetBytes/PutBytes usage, but this still seems to deadlock somewhere in iperf tests Arceliar 2019-05-02 17:37:49 -0500
  • 5f66c4c95c
    Try using separate workers for each TUN/TAP connection (sometimes produces duplicate packets when communicating with both the node address and a subnet address, sometimes also can't Ctrl-C to quit) Neil Alexander 2019-04-28 17:14:09 +0100
  • 6469e39ff1 workaround to random timeouts Arceliar 2019-04-26 22:42:05 -0500
  • 5d323861f0 properly fix the memory errors, it was caused by a function returning and PutBytes-ing a buffer before a worker had a chance to decrypt the buffer, so it would GetBytes the same buffer by dumb luck and then get an illegal overlap Arceliar 2019-04-26 22:21:31 -0500
  • 01ea6d3d80 somehow this doesn't seem to deadlock or crash from buffer reuse (util.PutBytes), but I have no idea why it was doing that before and not now Arceliar 2019-04-26 21:49:11 -0500
  • 15051b0a3c Add deadline timers, keep searches alive until they complete (or the conn is closed) to keep Write from blocking forever Arceliar 2019-04-26 19:31:47 -0500
  • 0059baf36c add a newConn function that returns a pointer to a Conn with atomics properly initialized Arceliar 2019-04-26 18:07:57 -0500
  • 75130f7735
    Fix TAP support again Neil Alexander 2019-04-23 11:46:16 +0100
  • 2b44f5d2f6
    Fix TAP support Neil Alexander 2019-04-23 11:37:32 +0100
  • b4513ca2e8
    Re-add support for TAP mode Neil Alexander 2019-04-23 10:43:07 +0100
  • 870b2b6a2e
    Remove CKR from src/yggdrasil (it will be moved into tuntap) Neil Alexander 2019-04-23 10:28:40 +0100
  • 2bee3cd7ca
    Update TODOs at top of tun.go Neil Alexander 2019-04-23 00:04:22 +0100
  • d7a1c04748
    It works, sort of, amazingly Neil Alexander 2019-04-22 23:58:59 +0100
  • e1a2d666bf
    Clean up router, tweaks Neil Alexander 2019-04-22 23:12:13 +0100
  • 6e528799e9
    Conn Read/Write operations will block while search completes Neil Alexander 2019-04-22 22:38:37 +0100
  • ea8948f378
    TUN/TAP addr/subnet to Conn mappings, other fixes Neil Alexander 2019-04-22 20:06:39 +0100
  • 9778f5d2b8
    Fix search behaviour on closed Conns, various other fixes Neil Alexander 2019-04-22 15:00:19 +0100
  • bbd1246f7b
    Fix bug in mask generation for outbound dials, change iface reader mutexes to read-only locks unless RW is needed Neil Alexander 2019-04-22 11:49:47 +0100
  • ccf03fd3b6
    Don't write huge mostly empty buffers unnecessarily Neil Alexander 2019-04-22 11:22:40 +0100
  • 47eb2fc47f
    Break deadlock by creating session recv queue when session is created instead of repointing at search completion, also make expired atomic Neil Alexander 2019-04-22 11:20:35 +0100
  • 5a02e2ff44 apparently it was these callbacks that were sometimes deadlocking things Arceliar 2019-04-21 22:31:56 -0500
  • 9ce7fe2e3f fix tun/tap CIDR notation so things work on linux, may break other platforms for all I know Arceliar 2019-04-21 20:56:12 -0500
  • 5dada3952c use a session worker to try to avoid mutex hell. compiles, but incomplete and doesn't work yet Arceliar 2019-04-21 20:38:14 -0500
  • 0b8f5b5dda
    Tweaks Neil Alexander 2019-04-21 12:28:46 +0100
  • 781cd7571f
    Fix race on tun conns, but still deadlocks if more than one connection is opened Neil Alexander 2019-04-21 12:00:31 +0100
  • 79bcfbf175
    Change some mutexes to atomics, change conns map to pointers, sort of works but seems to deadlock very easily Neil Alexander 2019-04-21 11:50:41 +0100
  • 62621f2960
    Some tweaks Neil Alexander 2019-04-20 20:22:58 +0100
  • d01662c1fb
    Try to convert TUN/TAP to use new yggdrasil.Conn, search masks are still broken Neil Alexander 2019-04-20 16:32:27 +0100
  • 319366513c
    Allow building with race detector Neil Alexander 2019-04-20 11:53:46 +0100