Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-31-2013, 02:49 AM   #1
LQ Newbie
Registered: Oct 2013
Posts: 16

Rep: Reputation: Disabled

I didnít find any reference for this basic question
Iím porting a router application to linux Ė and I will use iproute2 to configure the kernel with router-interfaces/addressee/nbrs etc.
Iíve installed iproute2 pkg. and I want to reuse it as much as possible
What are the APIs of the iproute2 that my application can use? for example for 'ip route' commands , is the API is 'do_iproute' ? (and generally do_ipxxx)
Thanks, Avi
Old 11-02-2013, 06:48 PM   #2
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 874

Rep: Reputation: 269Reputation: 269Reputation: 269
iproute2 does not present an API, it is an end user application designed for scripting.

You can exec it and check return values or you can look at the source code for the real API functions that it calls which are presented via the kernel.
Old 11-04-2013, 08:35 AM   #3
LQ Newbie
Registered: Oct 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
in my application i dont use the shell ip commands - but commands that comes from a remote Mgmt system
i have to translate to iproute2 commands via (argc, argv) and call an appropriate function in iproute2 pkg.
i think that i will call the 'main' function with some modifications.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding arpd in iproute2 vijay_nbr Linux - Newbie 3 02-14-2013 08:45 AM
problem in iproute2 alvi2 Linux - Networking 1 06-13-2005 06:13 PM
Help with iproute2 warwolf Linux - Networking 1 05-13-2005 09:25 AM
iproute2 rounting sqn Linux - Networking 1 06-14-2004 02:26 PM
installing iproute2 lwinkenb Linux From Scratch 2 04-12-2004 02:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration