lnwasi

Crates.iolnwasi
lib.rslnwasi
version0.0.3
sourcesrc
created_at2023-02-22 14:16:47.866909
updated_at2023-02-28 07:30:14.023983
descriptionNetlink Library for Web Assembly
homepage
repositoryhttps://github.com/21kyu/lnwasi
max_upload_size
id791829
size131,663
Wongyu Lee (wqld)

documentation

https://docs.rs/lnwasi

README

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
Commit count: 6

cargo fmt