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