LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2007, 05:18 AM   #1
kky
LQ Newbie
 
Registered: Nov 2005
Posts: 10

Rep: Reputation: 0
Using iproute2 existing code for my application


Hi, i would like to use the iproute2 packet in my application avoiding the use of system(const char*) calls to perform commands, so my first approach was to create a library.a from the iproute2 packet and then call the main function (of iproute2) in my code. Is there a nicer approach? i would like also to avoid rewriting the same code, i was wondering also if the use of iproute2 application as library could create some problems, see global function that in my case wont be reset.

i have the same dout with Netfilter (iptables), what is usually the way of doing things ?
thank you!
kky

Last edited by kky; 10-10-2007 at 05:40 AM.
 
Old 10-12-2007, 03:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you want to use the whole iproute, you can run it as a child process and then get the result. The same with iptables.
 
  


Reply



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
SuSE 10.1 will not install any application source code. Where is it? tiger9999tiger SUSE / openSUSE 2 07-02-2006 02:33 PM
uninstalling the existing application anil2003 VectorLinux 1 04-27-2006 11:45 AM
Eclipse w/CDT plugin - importing existing sorce code kenneho Programming 0 10-29-2005 06:44 AM
Install application from source code UltraSoul Linux - Software 2 07-29-2005 01:23 PM
iptables and iproute2+tc source code thanhnx Linux - Networking 1 02-19-2003 07:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:42 AM.

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