smoltcp
kerla-demo
smoltcp | kerla-demo | |
---|---|---|
9 | 1 | |
3,566 | 14 | |
1.5% | - | |
8.8 | 7.8 | |
3 days ago | over 2 years ago | |
Rust | Rust | |
BSD Zero Clause License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
smoltcp
-
Implementing TCP in Rust
There is also the Rust TCP/IP stack https://github.com/smoltcp-rs/smoltcp which is not mentioned as reference (and it's probably more useful to have a look there than querying ChatGPT).
- RFC2217 implementation written in Rust
-
Create TCP connection with Pnet
Trying to dig out a link for you, will edit when I find it; TCP and Layer 4 raw sockets do not play nicely together on many platforms. You’ll probably have to send at the datalink layer and/or use something like https://github.com/smoltcp-rs/smoltcp
-
Introduction to TCP and Sockets
This seems close to what you're asking for: https://github.com/smoltcp-rs/smoltcp
A small-ish tcp/ip stack, in rust.
- smoltcp is a standalone, event-driven TCP/IP stack that is designed for bare-metal, real-time systems. Its design goals are simplicity and robustness.
-
Rust embedded and networking
You can look into smoltcp
-
What are some low level networking libraries that y'all recommend?
smoltcp
-
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
This here is a kernel including a memory-safe TCP/IP stack (https://github.com/smoltcp-rs/smoltcp/), and not having it crash or be full of security vulnerabilities due to preventable memory corruption is a quality beyond personal language preferences.
-
Let's suppose for a minute that I've COMPLETELY lost my mind
Oh, and you also probably want to check out smoltcp, a userspace/"no operating system required" networking stack that we often use in embedded rust.
kerla-demo
-
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
Author here. I've made the demo system public [1] but it's written just for me so it should be painful to set up the same environment.
The mechanism is pretty simple: a Node.js server (running on genuine Linux) listens on tcp:22. Once you connect, it boots a dedicated Firecracker microVM instance and forwards network packets between your SSH client and VM.
Regarding the command history, others (including I) can't see what you type. If you could, it must be a vulnerability.
[1] https://github.com/nuta/kerla-demo
What are some alternatives?
embassy - Modern embedded framework, using Rust and async.
xous-core - The Xous microkernel
rust-raspberrypi-OS-tutorials - :books: Learn to write an embedded OS in Rust :crab:
PIOS - PIOS: Parallel Instructional Operating System - Instructional Template Code
tock - A secure embedded operating system for microcontrollers
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
mosys
headcrab - A modern Rust debugging library 🦀
OpenSK - OpenSK is an open-source implementation for security keys written in Rust that supports both FIDO U2F and FIDO2 standards.
src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.