3 releases
0.0.3 | Feb 28, 2023 |
---|---|
0.0.2 | Feb 27, 2023 |
0.0.1 | Feb 22, 2023 |
#793 in WebAssembly
99KB
2K
SLoC
lnwasi
A netlink library for web assembly written in Rust.
This project is heavily inspired by vishvananda/netlink
and exposes a high level API for interacting with the kernel's netlink interface,
similarly to the iproute2
command line tool.
Ultimately, the goal is to make the library available in a web assembly environment as well.
Supported commands
Link
- ip link show $link
- ip link add $link
- ip link del $link
- ip link set $link up
Address
- ip addr show $link
- ip addr add $addr dev $link
- ip addr replace $addr dev $link
- ip addr del $addr dev $link
Route
- ip route get $dst
- ip route show $link
- ip route add $route
- ip route append $route
- ip route replace $route
- ip route del $route
lib.rs
:
lnwasi
lnwasi
is a netlink library for web assembly.
Dependencies
~3MB
~67K SLoC