Code Monkey home page Code Monkey logo

libnel's Introduction

== libnel ==

Custom library for netlink iterface. Written on C.
Standard libnl, libnl-route, ... are big enough for
using on routers, so we've created a custom one.
Like libnl-tiny in OpenWrt. Now we think that more
useful would be to make API identical to libnl API,
but we didin't.

* libnel -- core helper library. Implements API to
netlink.

* libnel-route -- based on libnel. Implements API
for interfaces, ip and routes management.

* libnel-genl -- based on libnel, helper library.
Implements API to generic netlink.

* libnel-80211 -- based libnel-genl. Implemets API
for management Wi-Fi/802.11.

To debug define environment variable LIBNEL_DEBUG.

For testing libnel-route we've created a simple cmdline util 'ip':
Usage: [OPTIONS] OBJECT CMD [CMD_OPTIONS].
Options: -d -- debugging, -h -- help, -s -- statistics (show verbose info)
  $ ip link [show [IFACE]]
  $ ip link set IFACE up|down
  $ ip link set IFACE addr hh:hh:hh:hh:hh:hh
  $ ip link set IFACE master MASTER_IFACE
  $ ip link set IFACE nomaster
  $ ip link add IFACE type bridge
  $ ip link add IFACE type vlan LINK_IFACE VLAN_ID
  $ ip link del IFACE 
  $ ip addr [show [IFACE]]
  $ ip addr add|del IFACE ADDR/BITS
  $ ip route [show [dest ADDR/BITS] [proto PROTO] [type TYPE] [scope SCOPE]
    [table TABLE] [gw ADDR]]
  $ ip route show all
  $ ip route get ADDR
  $ ip route add|del DEST/BITS via GW

For testing libnl-80211 we've created a simple cmdline util 'iw':
Usage: iw [options] [iface]
Options: -d -- log level info, -d2 --log level debug

libnel's People

Contributors

dklibc avatar

Watchers

 avatar

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.