SH Weng
67fc2e1977
Follow up changes in rand 0.9.0
...
In rand 0.9.0 (2025-01-27), `SeedableRng::from_entropy` has been renamed to `from_os_rng`. This change will lead to build error, and this commit fixed it.
See also: 0bc3f652c4/rand_core/CHANGELOG.md (L19)
2025-02-09 14:22:15 +08:00
Datong Sun
34d2350d1c
chore(cargo): bump fake-tcp
version to 0.6.0
and phantun
to
...
`0.7.0`
2024-11-20 23:06:36 +08:00
Datong Sun
6955a1eb4c
chore(deps): bump dependencies to latest
2024-11-20 23:06:36 +08:00
Datong Sun
e86c5c5c50
fix(fake-tcp): when connect()
-ing, attempt to get ephemeral port using algorithm similar to Linux ( #162 )
...
* fix(fake-tcp): when `connect()`-ing, attempt to get ephemeral port 5 times to reduce the chance
of panicking
Fixes #79
2024-11-20 22:57:11 +08:00
Datong Sun
90b93370ce
chore(docs): update license year to 2024
2024-04-19 09:15:33 -07:00
dependabot[bot]
8a0ec729e2
chore(deps): update tokio-tun requirement from 0.9 to 0.11
...
Updates the requirements on [tokio-tun](https://github.com/yaa110/tokio-tun ) to permit the latest version.
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.9.0...0.11.2 )
---
updated-dependencies:
- dependency-name: tokio-tun
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-30 22:45:51 +08:00
dependabot[bot]
310bb17516
chore(deps): update pnet requirement from 0.33 to 0.34
...
Updates the requirements on [pnet](https://github.com/libpnet/libpnet ) to permit the latest version.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.33.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-19 00:07:50 +08:00
dependabot[bot]
805bf80cd8
chore(deps): update tokio-tun requirement from 0.7 to 0.9
...
Updates the requirements on [tokio-tun](https://github.com/yaa110/tokio-tun ) to permit the latest version.
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.7.0...0.9.0 )
---
updated-dependencies:
- dependency-name: tokio-tun
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-27 23:38:42 +08:00
dependabot[bot]
aec3bcdeda
chore(deps): update flume requirement from 0.10 to 0.11
...
Updates the requirements on [flume](https://github.com/zesterer/flume ) to permit the latest version.
- [Changelog](https://github.com/zesterer/flume/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zesterer/flume/commits )
---
updated-dependencies:
- dependency-name: flume
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-27 12:58:08 +08:00
dependabot[bot]
ee7ee5d5f9
chore(deps): update pnet requirement from 0.31 to 0.33
...
Updates the requirements on [pnet](https://github.com/libpnet/libpnet ) to permit the latest version.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.31.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 23:16:04 +08:00
Datong Sun
30f0a1118b
chore(fake-tcp): bump to v0.5.0
2022-10-25 08:35:49 -07:00
dependabot[bot]
b707c5bd12
chore(deps): update tokio-tun requirement from 0.6 to 0.7
...
Updates the requirements on [tokio-tun](https://github.com/yaa110/tokio-tun ) to permit the latest version.
- [Release notes](https://github.com/yaa110/tokio-tun/releases )
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.6.0...0.7.0 )
---
updated-dependencies:
- dependency-name: tokio-tun
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-20 00:04:20 -07:00
Paolo Barbolini
6af7757456
perf(fake-tcp) let the memory allocator zero initialize the BytesMut
memory instead of resizing immediately after allocation
...
Co-authored-by: Datong Sun <dndx@idndx.com>
2022-08-18 19:00:09 -07:00
dependabot[bot]
50346c1ba0
chore(deps): update tokio-tun requirement from 0.5 to 0.6
...
Updates the requirements on [tokio-tun](https://github.com/yaa110/tokio-tun ) to permit the latest version.
- [Release notes](https://github.com/yaa110/tokio-tun/releases )
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.5.1...0.6.0 )
---
updated-dependencies:
- dependency-name: tokio-tun
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 18:54:47 -07:00
dependabot[bot]
f649c79656
chore(deps): update pnet requirement from 0.30 to 0.31
...
Updates the requirements on [pnet](https://github.com/libpnet/libpnet ) to permit the latest version.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.30.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-25 02:57:39 +08:00
dependabot[bot]
bf6b9bc2ff
chore(deps): update pnet requirement from 0.29 to 0.30
...
Updates the requirements on [pnet](https://github.com/libpnet/libpnet ) to permit the latest version.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.29.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 23:06:03 +08:00
Datong Sun
245cb9c7f4
chore(fake-tcp) release v0.4.0
2022-04-16 03:47:02 -07:00
Datong Sun
85555f2a34
feat(*) IPv6 support
2022-04-16 18:43:55 +08:00
Datong Sun
91ad2c03a1
chore(fake-tcp) release v0.3.1
2022-04-10 06:09:48 -07:00
Datong Sun
581d80d08c
perf(fake-tcp) use flume to avoid locking in receiver, improved single
...
connection performance by 300%
2022-04-10 21:07:12 +08:00
Datong Sun
ca14ba457f
chore(fake-tcp) bump to v0.3.0
2022-04-10 01:36:45 -07:00
Datong Sun
95dfd8ab54
fix(fake-tcp) fix an issue where RST
generated is not following
...
the proper RFC requirement.
Send ACK every 128MB in lieu of data packets.
2022-04-10 16:33:53 +08:00
Datong Sun
9bf78adc92
chore(fake-tcp) bump to v0.2.4
with new documentations
2022-04-08 21:10:36 -07:00
Datong Sun
5d4e3bf8c0
docs(fake-tcp) added documentations for fake-tcp
2022-04-09 12:10:13 +08:00
dependabot[bot]
11fdac78f1
chore(deps): update pnet requirement from 0.28 to 0.29
...
Updates the requirements on [pnet](https://github.com/libpnet/libpnet ) to permit the latest version.
- [Release notes](https://github.com/libpnet/libpnet/releases )
- [Commits](https://github.com/libpnet/libpnet/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: pnet
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-14 23:44:23 +08:00
Datong Sun
ed686ce9fa
docs(licenses) updated to year 2022
2022-01-03 07:57:09 -08:00
Datong Sun
7db7164193
chore(*) use tokio-tun
v0.5 instead of forked version. Bumped
...
`fake-tcp` to `v0.2.3`
2021-12-07 17:07:54 +08:00
Datong Sun
e2a9194f6f
chore(fake-tcp) bump to v0.2.2
2021-12-05 06:57:23 -08:00
Datong Sun
299646a54f
chore(fake-tcp) bump to v0.2.1
2021-12-05 06:43:18 -08:00
Datong Sun
8b28cdc6c2
chore(crates) do not include bugfix version in dependency as it prevents
...
auto update from Dependabot
2021-12-05 22:41:05 +08:00
Datong Sun
33e510e7ba
fix(fake-tcp) remove unneeded State::Closed
as it is not in a
...
reachable code path
2021-11-19 10:45:13 -08:00
Datong Sun
e8f2457cb5
chore(fake-tcp) bump to v0.2.0
2021-11-18 20:36:05 -08:00
Datong Sun
583cdbe300
perf(fake-tcp) reduce the number of clone()
calls in hot path
2021-11-19 12:35:21 +08:00
Datong Sun
91988520e5
feat(*) add DNS name support for --remote
argument in both Client and
...
Server
2021-11-19 12:30:47 +08:00
Datong Sun
7390d4bf27
chore(fake-tcp) release version v0.1.3
2021-11-02 18:29:53 +08:00
dependabot[bot]
95e762f5fd
chore(deps): update dndx-fork-tokio-tun requirement from 0.3.16 to 0.4.0
...
Updates the requirements on [dndx-fork-tokio-tun](https://github.com/yaa110/tokio-tun ) to permit the latest version.
- [Release notes](https://github.com/yaa110/tokio-tun/releases )
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.3.16...0.4.0 )
---
updated-dependencies:
- dependency-name: dndx-fork-tokio-tun
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 18:29:53 +08:00
Datong Sun
49665b906f
chore(cargo) use Rust edition 2021
2021-10-21 03:41:42 -07:00
Datong Sun
3219cb9f38
chore(fake-tcp) bump version to 0.1.2
2021-10-09 09:31:55 -07:00
Datong Sun
41e86521b7
fix(fake-tcp) more robust checking for receiving end closing, avoids
...
panicking tasks from causing server to stop completely
2021-10-10 00:29:28 +08:00
Datong Sun
427fb7c19a
fix(fake-tcp) use 64 as TTL value, fixes #11
2021-10-09 23:57:47 +08:00
Datong Sun
8371256f0b
perf(fake-tcp) use cached tuples per dispatcher task to avoid RwLock
...
contentions. Use multi queue Tun. Upgraded tokio to 1.12.0.
This makes the entire Phantun forward process completely lock contention free
2021-09-23 12:59:49 +08:00
Datong Sun
04b0e97c1d
perf(fake-tcp) faster checksum calculation
...
Before:
```
test packet::benchmarks::bench_build_tcp_packet_128 ... bench: 207 ns/iter (+/- 25)
test packet::benchmarks::bench_build_tcp_packet_1460 ... bench: 670 ns/iter (+/- 14)
test packet::benchmarks::bench_build_tcp_packet_512 ... bench: 334 ns/iter (+/- 21)
```
After:
```
test packet::benchmarks::bench_build_tcp_packet_128 ... bench: 206 ns/iter (+/- 9)
test packet::benchmarks::bench_build_tcp_packet_1460 ... bench: 259 ns/iter (+/- 16)
test packet::benchmarks::bench_build_tcp_packet_512 ... bench: 212 ns/iter (+/- 11)
```
2021-09-20 23:12:53 +08:00
Datong Sun
4a9e41b0b7
chore(*) refactor Phantun and fake-tcp to their own crates
2021-09-19 00:36:40 -07:00