-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh-net): implement network monitoring (#1472)
## Description Implements #1464 ## Outstanding work - [x] Integration of monitoring - [x] OS Specific monitoring - [x] macos - [x] windows - [x] linux - [x] android (unusable dummy) - [x] sleep detection (wall time jumps) - [x] testing: only manual for now, and a smoke test, hard to test otherwise - [x] ~~metrics~~: I don't think we need those for now - [x] cleanup & shutdown ## Notes Android sucks, seriously google what are you doing. It is not possible to use rtnetlink anymore on android, and the `ConnectivityManager` can only be used from Java/Kotlin. So for now we don't do anything on android. The solution is to inject events from the `ConnectivityManager` through a public API, like tailscale does.. 😭 😭 😠 ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. --------- Co-authored-by: Divma <26765164+divagant-martian@users.noreply.github.com>
- Loading branch information
1 parent
36e622f
commit a89078f
Showing
13 changed files
with
1,067 additions
and
102 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
pub mod interfaces; | ||
pub mod ip; | ||
pub mod netmon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.