25 stable releases

1.2.25 Jun 26, 2025
1.2.24 Mar 18, 2025
1.2.22 Dec 30, 2024
1.2.21 Sep 25, 2024
0.1.0 Jul 3, 2020

#608 in Network programming

Download history 2738/week @ 2025-03-22 2853/week @ 2025-03-29 2774/week @ 2025-04-05 2000/week @ 2025-04-12 1890/week @ 2025-04-19 2133/week @ 2025-04-26 2099/week @ 2025-05-03 2378/week @ 2025-05-10 1876/week @ 2025-05-17 2519/week @ 2025-05-24 2177/week @ 2025-05-31 1676/week @ 2025-06-07 2317/week @ 2025-06-14 2271/week @ 2025-06-21 2564/week @ 2025-06-28 1744/week @ 2025-07-05

9,141 downloads per month
Used in 8 crates (7 directly)

Apache-2.0

330KB
9K SLoC

The nispor(Network Inspector) project is designed to providing unified interface for Linux network state querying.

Currently providing:

  • Rust crate
  • Python binding
  • C binding
  • Command line tool -- npc

Install

make
sudo PREFIX=/usr make install

Usage

Print all network status

npc

Print network status of certain NIC

npc bond99

Print route entries

npc route

Supported features

  • IPv4/IPv6 address
  • Bond
  • Linux Bridge
  • Linux Bridge VLAN filtering
  • VLAN
  • VxLAN
  • Route
  • Dummy
  • TUN/TAP
  • Veth
  • VRF(Virtual Routing and Forwarding)
  • SR-IOV
  • MacVlan
  • MacVtap

TODO:

  • Error handling instead of unwrap()/panic!/etc
  • SR-IOV VF-PF relation is possible
  • VLAN QoS
  • Route rule
  • Traffic control
  • Manpage for npc/npd
  • pkgconfig file for nispor C library

What should nispor not do

To make nispor only to small good things, this is the list of things could be done by nispor but should not do:

  • Ordering the network interface configuration base on child/parent, controller/port relationships.
  • Wrapping of multiple kernel options into simple ones.
  • User space networking.
  • Notification on network change.

Dependencies

~7–16MB
~223K SLoC