Giter Site home page Giter Site logo

iproute2_as_lib's Introduction

Use iproute2 as library

Why create this project

  1. There is no libraries to obtain the network information/statistics/... data from interfaces. You need re-invent the wheel to write the code to get such information with socket interface. maybe you cost much time to write the code to meet the requirement.

  2. iproute2 is easy to use tools to operate network in the *inx system. like check the IP, Add/Del/Mod the interface, monitor the working status of the network/interfaces.

  3. so, why we don't make iproute2 as a standard library?! Here it is! you can use the ip.h as the only header file in your source code, make the same thing like operator on the 'ip' tools.

  4. Have fun!

How to compile this

  1. libiproute2.x.x.x

    x.x.x is the version number of library, which is the same with the lastest tag of offical iproute2.

    • make all (The library libiproute2.x.x.x was located in the iproute2/lib/, the header file <ip.h> was located in the iproute2/include)
  2. iproute2 "Header files" and "Library file"

    • iproute2_as_lib provide C/C++ API.
  3. Example

    • In the example folder, I write some user cases how to extract the information from the dump string. and you can make what you want with the api.

Contract

eshenhu x gmail.com

iproute2_as_lib's People

Contributors

eshenhu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

yyjie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.