#networking #bindings

deprecated nispor-clib

C binding for nispor project (deprecated)

8 releases (stable)

1.2.26+deprecated Sep 4, 2025
1.2.26-deprecated Aug 31, 2025
1.2.19 May 22, 2024
1.2.9 Dec 13, 2022
1.2.2 Nov 29, 2021

#60 in #network

Download history 3/week @ 2025-09-13 8/week @ 2025-09-27 3/week @ 2025-10-04

333 downloads per month

Apache-2.0

405KB
11K 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

~9MB
~181K SLoC