174 Commits

Author SHA1 Message Date
34dcb870de remove build dependency 2024-10-15 13:45:33 +02:00
9073513e27 Update shared_memory_heap 2024-05-15 13:17:41 +02:00
3fed591fd6 update shared_memory_heap 2024-05-15 09:08:43 +02:00
3fc86e2da0 Integrate agent 2024-05-15 09:08:43 +02:00
16dd00a951 Remove rate-limiting 2024-05-15 09:08:43 +02:00
8083faa28c Add nix derivation 2024-05-15 09:08:35 +02:00
Mathias Hall-Andersen
7d84ef9064 Allows for erroneous Clippy lints
Signed-off-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
2021-01-13 18:10:52 +01:00
Mathias Hall-Andersen
1fb7975d3d Upgrade dependencies
Signed-off-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
2021-01-05 22:53:27 +01:00
Quang Luong
9b53a9d1a6 Fix some clippy warnings
Signed-off-by: Quang Luong <quangio@outlook.com>
2020-10-08 10:19:51 +02:00
Mathias Hall-Andersen
a7dea4f2b4 Added MIT license 2020-07-06 14:49:57 +02:00
Mathias Hall-Andersen
6e307fc70e Replace RwLock<HashMap> with DashMap in handshake 2020-06-19 23:45:56 +02:00
Mathias Hall-Andersen
c1dfc848c4 Added architecture illustration. 2020-06-14 21:57:35 +02:00
Janito Vaqueiro Ferreira Filho
bf10011de4 Prevent lock guard from being dropped prematurely
Signed-off-by: Janito Vaqueiro Ferreira Filho <janito@mullvad.net>
2020-06-11 20:11:40 +02:00
Mathias Hall-Andersen
16ede0f37d Enable wireguard-rs to build on stable.
WireGuard Rust targets the latest nightly compiler,
primarily for security and speed reasons.

The recommended way to build WireGuard Rust is still with latest nightly.
2020-05-22 18:01:15 +02:00
Mathias Hall-Andersen
16f21989b4 Elimited Daemonize dependency 2020-05-17 22:07:59 +02:00
Mathias Hall-Andersen
8d53b0f5c1 Remove "list_peers" and "lookup_peer". 2020-05-13 23:23:17 +02:00
Mathias Hall-Andersen
ff9b7e3ed2 Bumped dependencies 2020-05-13 23:22:49 +02:00
Mathias Hall-Andersen
6c386146a7 Refactoring timer code:
- Remove the Events struct
- Implement Callbacks on the PeerInner, elimiting an Arc.
2020-05-10 21:23:51 +02:00
Mathias Hall-Andersen
985fd088f8 Added basic readme. 2020-03-29 23:07:00 +02:00
Mathias Hall-Andersen
ded348d586 Added checks for zero shared-secret
To mirror the behavior from the kernel module,
as per private correspondence with Jason.
2020-03-29 23:07:00 +02:00
Mathias Hall-Andersen
12a7b371d4 Restructuring and dependency version bump. 2020-03-29 18:21:48 +02:00
Mathias Hall-Andersen
c4d2ad7a78 Merge branch 'tests' 2020-03-16 12:44:48 +01:00
Mathias Hall-Andersen
f2ee976d06 Upgraded treebitmap dependency 2020-03-16 12:41:59 +01:00
Mathias Hall-Andersen
981d553852 Added the netns test 2020-02-29 13:30:20 +01:00
Mathias Hall-Andersen
626b3b2314 Additional in-order queue test for router 2020-02-26 23:01:18 +01:00
Mathias Hall-Andersen
8de2305cc7 Fixed unit tests 2020-02-21 00:31:00 +01:00
Mathias Hall-Andersen
db02609334 More comprehensive unit tests for router 2020-02-20 13:21:37 +01:00
Mathias Hall-Andersen
ead75828cd Simplified router code 2020-02-16 20:25:31 +01:00
Mathias Hall-Andersen
1ebbc51126 Fixed EINVAL on read4/6 from invalid namelen 2020-02-16 13:24:23 +01:00
Mathias Hall-Andersen
5e6edb280e Bumped crate versions. 2020-02-12 21:38:25 +01:00
Mathias Hall-Andersen
dcd567c08f Squashed commit of the following:
commit 1e26a0bef44e65023a97a16ecf3b123e688d19f7
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Sat Feb 1 14:36:50 2020 +0100

    Initial version of sticky sockets for Linux

commit 605cc656ad235d09ba6cd12d03dee2c5e0a9a80a
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Thu Jan 30 14:57:00 2020 +0100

    Clear src when sendmsg fails with EINVAL

commit dffd2b228af70f681e2a161642bbdaa348419bf3
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Sun Jan 26 14:01:28 2020 +0100

    Fix typoes

commit 2015663706fbe15ed1ac443a31de86b3e6c643c7
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Sun Jan 26 13:51:59 2020 +0100

    Restructure of public key -> peer state

    Restructured the mapping of public keys to peer state in the project.
    The handshake device is now generic over an opaque type,
    which enables it to be the sole place where public keys are mapped to
    the peer states.

    This gets rid of the "peer" map in the WireGuard devices
    and avoids having to include the public key in the handshake peer state.

commit bbcfaad4bcc5cf16bacdef0cefe7d29ba1519a23
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Fri Jan 10 21:10:27 2020 +0100

    Fixed bind6 also binding on IPv4

commit acbca236b70598c20c24de474690bcad883241d4
Author: Mathias Hall-Andersen <mathias@hall-andersen.dk>
Date:   Thu Jan 9 11:24:13 2020 +0100

    Work on sticky sockets
2020-02-01 14:39:19 +01:00
Mathias Hall-Andersen
d4f5d5b723 Fixed typo in under load code 2019-12-27 18:01:11 +01:00
Mathias Hall-Andersen
956c3f02d4 Remove unused under_load code 2019-12-26 23:45:34 +01:00
Mathias Hall-Andersen
bb0a8acea3 Make under_load global for WireGuard device 2019-12-26 22:55:33 +01:00
Mathias Hall-Andersen
aabefa5043 Remove unused test code.
- make naming consistent with the kernel module.
- better distribution of functionality from src/wireguard.rs
- more consistent "import pattern" throughout the project.
- remove unused test code.
2019-12-21 00:17:31 +01:00
Mathias Hall-Andersen
f8f404c871 Constant renamed to be consistent with kernel WG 2019-12-16 16:53:23 +01:00
Mathias Hall-Andersen
22f978f014 Clean dead code 2019-12-16 16:37:16 +01:00
Mathias Hall-Andersen
fd3ba63e80 Revert to crossbeam 2019-12-16 15:26:15 +01:00
Mathias Hall-Andersen
c873528a55 Removed unused atexit 2019-12-14 13:40:00 +01:00
Mathias Hall-Andersen
e0db9861bc Added profiler feature 2019-12-14 13:37:51 +01:00
Mathias Hall-Andersen
6566796387 Remove crossbeam dependency 2019-12-10 18:17:48 +01:00
Mathias Hall-Andersen
3b376cd6fb Formatting 2019-12-09 13:38:08 +01:00
Mathias Hall-Andersen
d1350620be Merge branch 'runq' of ssh://git.zx2c4.com/wireguard-rs into runq 2019-12-09 13:21:42 +01:00
Mathias Hall-Andersen
115fa574a8 Move to run queue 2019-12-09 13:21:12 +01:00
Mathias Hall-Andersen
00c1ea17d5 Remove futures from dependencies 2019-12-06 21:58:01 +01:00
Mathias Hall-Andersen
74e576a9c2 Fixed inbound job bug (add to sequential queue) 2019-12-06 21:45:21 +01:00
Mathias Hall-Andersen
5a7f762d6c Moving away from peer threads 2019-12-03 21:49:08 +01:00
Mathias Hall-Andersen
549b2cf5d0 Close socket fd after getmtu ioctl 2019-11-28 09:52:59 +01:00
Mathias Hall-Andersen
68b04e8074 Fetch updated MTU on linux 2019-11-27 22:39:52 +01:00
Mathias Hall-Andersen
04f507556b Work on netlink IF event code for Linux 2019-11-27 16:59:54 +01:00