Nils Andreas Svee
8143822db4
start working on jenkinsfile for automated builds
2022-11-27 14:31:12 +01:00
Nils Andreas Svee
7d11f2a273
no need to have the cake definition in it's own file
...
also remove everything we don't use
2022-11-25 20:21:54 +01:00
Nils Andreas Svee
786639bf56
Move creation of State struct to a function
2022-11-25 20:19:06 +01:00
Nils Andreas Svee
6659e72ab4
add missing newline to stats dumping
2022-11-21 18:15:25 +01:00
Nils Andreas Svee
5c0a6c304f
ratecontroller: use durations instead of manually handling time
2022-11-10 13:54:26 +01:00
Nils Andreas Svee
bb9d1ed4af
reflector_selector: Simplify setting sleep time
2022-10-29 22:43:47 +02:00
Nils Andreas Svee
e9fb811a58
pinger: remove allow dead code
2022-10-29 22:36:05 +02:00
Nils Andreas Svee
f7d39d170f
Remove unused qdisc fields for now
2022-10-29 22:35:48 +02:00
Nils Andreas Svee
d5823634ca
Handle initialization for first ratecontroller run better
2022-10-29 22:34:52 +02:00
Nils Andreas Svee
13ba3eaffe
Rename 'clock' to 'time'
2022-10-29 22:30:19 +02:00
Nils Andreas Svee
befccc0d6f
move util functions into respective modules
2022-10-19 21:23:52 +02:00
Nils Andreas Svee
1c38d8ff48
ratecontroller: no need to manually construct duration
2022-10-18 16:22:15 +02:00
Nils Andreas Svee
d2e0d2b0be
Remove ratecontroller debug print
2022-10-15 15:05:07 +02:00
Nils Andreas Svee
cacc5b1a6b
Apply Clippy recommendations
2022-10-15 14:58:05 +02:00
Nils Andreas Svee
34b3fc0850
Add explanation to endian module
2022-10-15 13:49:05 +02:00
Nils Andreas Svee
c82f777290
Update dependencies
2022-10-15 13:44:53 +02:00
Nils Andreas Svee
c1286b0ba9
Add clock wrapper class
2022-10-15 13:44:30 +02:00
Nils Andreas Svee
f7bbb32788
Forgot to add endian mod to main
2022-10-15 13:43:37 +02:00
Nils Andreas Svee
62bd482acb
Implement to native endian functions as a trait for u32/u64
2022-10-13 18:52:13 +02:00
Nils Andreas Svee
6119408e1f
Attempt changing to socket2
2022-10-13 18:03:56 +02:00
Nils Andreas Svee
8e0a03b408
Remove Cargo config from workspace
2022-10-13 17:28:10 +02:00
Nils Andreas Svee
250b1910f7
Add reflector list from Lua project
2022-10-13 17:28:10 +02:00
Nils Andreas Svee
b290c11477
Update gitignore
2022-10-13 17:28:10 +02:00
Nils Andreas Svee
49c0bdb998
Update dependencies and profiles
2022-10-13 17:20:00 +02:00
Nils Andreas Svee
1adc5fda77
Split out the ratecontroller logic into functions
...
The original Lua code was duplicated per direction, making it more difficult to read and more prone to mistakes when changing things.
Start splitting this logic out into functions that are called per direction
2022-10-13 17:18:54 +02:00
Nils Andreas Svee
9a1901b213
Improve pinger error handling
2022-10-13 17:16:01 +02:00
Nils Andreas Svee
290450ac1e
Make sure link stats struct is stable
2022-10-13 17:15:28 +02:00
Nils Andreas Svee
432a9f2bac
Add error for UTF-8 parsing
2022-10-13 17:15:13 +02:00
Nils Andreas Svee
c190d2ec04
Correct qdisc error message
2022-10-13 17:14:50 +02:00
Nils Andreas Svee
890b3f8c19
Drop pub(crate) and use pub everywhere for now
2022-10-04 16:25:42 +02:00
Nils Andreas Svee
214ffef6f3
Use proper error handling instead of lurking panics everywhere
2022-10-04 16:20:24 +02:00
Nils Andreas Svee
999987d157
Correct comment about ICMP ID
2022-10-03 14:21:12 +02:00
Nils Andreas Svee
2dae569088
Don't hardcode initial shaper bandwidth
2022-09-29 12:09:43 +02:00
Nils Andreas Svee
edd2c6808a
Don't hardcode log level
2022-09-29 12:09:30 +02:00
Nils Andreas Svee
4d4ecd1289
Improve error handling
2022-09-29 00:25:14 +02:00
Nils Andreas Svee
e4f7b301b5
Use the version from Cargo
2022-09-29 00:24:46 +02:00
Nils Andreas Svee
0cbde6d1ea
Clean up socket creation a bit
2022-09-29 00:24:31 +02:00
Nils Andreas Svee
a3ee2b5c08
Enable ping log to stdout on debug
2022-09-28 23:19:27 +02:00
Nils Andreas Svee
603acdb7cc
Show a warning if there's a problem with UCI
2022-09-28 23:19:12 +02:00
Nils Andreas Svee
431f578460
Make sure the ID is right
2022-09-28 01:42:19 +02:00
Nils Andreas Svee
6e8b50bc7f
Config parsing cleanup
2022-09-28 01:42:06 +02:00
Nils Andreas Svee
cf14fcd5f8
Some cleanups
2022-09-28 01:41:51 +02:00
Nils Andreas Svee
f20ff59e78
Allow selection of measurement type in config
2022-09-28 01:29:43 +02:00
Nils Andreas Svee
d73693c25f
Set interface "directions" based on names
2022-09-28 00:50:20 +02:00
Nils Andreas Svee
9219ac690a
Use a RwLock instead of a Mutex for the peers
2022-09-28 00:43:48 +02:00
Nils Andreas Svee
e3b7b7e9ba
Implement missing features, some cleanup
2022-09-28 00:25:35 +02:00
Nils Andreas Svee
c06078fccb
fix ratecontroller vec access
2022-09-17 18:06:02 +02:00
Nils Andreas Svee
51442e0b26
rename
2022-09-17 18:05:48 +02:00
Nils Andreas Svee
b147006a69
partly working implementation
2022-09-17 14:39:27 +02:00
Nils Andreas Svee
27aa972fe6
current state
2022-09-04 16:40:38 +02:00
Nils Andreas Svee
92d3e3370b
import cleanup
2022-09-04 15:00:04 +02:00
Nils Andreas Svee
109be5afd6
endian fixes to make timestamps work
2022-09-04 14:59:57 +02:00
Nils Andreas Svee
724dc6dfc0
remove debug output from netlink
2022-09-04 14:59:38 +02:00
Nils Andreas Svee
db806c10a1
remove google dns
2022-09-04 14:59:28 +02:00
Nils Andreas Svee
4f1f89588c
work
2022-09-04 01:03:31 +02:00
Nils Andreas Svee
2644b17818
Initial commit
2022-08-27 16:27:15 +02:00