Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysuzuki19/rust-chibi-protocol-stack
Rust tiny protocol stack for self learning
https://github.com/ysuzuki19/rust-chibi-protocol-stack
Last synced: 2 days ago
JSON representation
Rust tiny protocol stack for self learning
- Host: GitHub
- URL: https://github.com/ysuzuki19/rust-chibi-protocol-stack
- Owner: ysuzuki19
- License: mit
- Created: 2024-05-21T17:37:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T18:10:46.000Z (7 months ago)
- Last Synced: 2024-12-17T19:03:09.998Z (10 days ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-chibi-protocol-stack
Rust tiny protocol stack for self learning
chibi (ちび) means tiny in Japanese.
## Supported protocols
- icmp
- udp
- tcp## Supported features
- icmp
- [x] echo reply
- udp
- [x] recv
- tcp
- [x] connection establishment
- [x] connection termination
- [x] recv message## Supported platforms
- Linux
# usage
## Start chibi-protocol-stack
```bash
$ cargo build
$ sudo target/debug/chibi-protocol-stack # `sudo` is required to bind tun device
```## Send a message
### icmp
```bash
$ ping 192.0.2.1
```### udp
```bash
$ nc -v -u 192.0.2.1 3000
# input message and press `Enter`
```### tcp
```bash
$ nc -v 192.0.2.1 3000
# input message and press `Enter`
```