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

Notices


Reply
  Search this Thread
Old 10-31-2013, 03:49 AM   #1
a.cohen
LQ Newbie
 
Registered: Oct 2013
Posts: 16

Rep: Reputation: Disabled
Iproute2


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, 07:48 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
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, 09:35 AM   #3
a.cohen
LQ Newbie
 
Registered: Oct 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thnaks
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.
 
  


Reply


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 09:45 AM
problem in iproute2 alvi2 Linux - Networking 1 06-13-2005 07:13 PM
Help with iproute2 warwolf Linux - Networking 1 05-13-2005 10:25 AM
iproute2 rounting sqn Linux - Networking 1 06-14-2004 03:26 PM
installing iproute2 lwinkenb Linux From Scratch 2 04-12-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:10 PM.

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