<div dir="ltr">2008/10/9 Alastair Johnson <span dir="ltr">&lt;<a href="mailto:alastair@truebox.co.uk">alastair@truebox.co.uk</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Nicola Mfb wrote:<br>
&gt; I&#39;m trying to write a test application that should change the network<br>
&gt; configuration with a gui, what&#39;s the best approach?<br>
&gt; Manually change /etc/network/interfaces? a wrapper library to do that?<br>
&gt; dbus api call?<br>
<br>
</div></div>That depends on which distro you&#39;re using, and how complete its network<br>
management is. 2008.x is using ConnMan which is an attempt at a lighter<br>
weight version of NetworkManager, but it seems rather incomplete. I<br>
think FSO is sticking with the basic debian-based interface using<br>
/etc/network/interfaces which mostly works according to the debian<br>
networking handbook. IIRC the bits needed for roaming connections are<br></blockquote></div><br>Hi Alastair, here a better explanation of what I&#39;d like to do:<br>I&#39;m trying to use dbus with C++/QT under FSO, to test it I&#39;m writing a simple gui that is able to turn on/off the bluetooth adapter, and to spawn a pan connection to my nap gentoo boxes. This is really simple with dbus, and works fine with dbus-send or mdbus, now I&#39;d like to support network configuration to have different pan profiles, with or without dhcp, with or without default routing and so on.<br>
<br>So actually should I modify /etc/network/interfaces directly in my application or spawn some external script that does this with sed and after launch ifdown/ifup bnep0?<br>This seems not much elegant to me, and to avoid mistakes on the configuration file, I should read busybox c code to understand how it read that file (a curiosity, there is a doc file in busybox that says please do not use ifup/ifdown approach:))<br>
<br>The problem become bigger if I want to add a pan server option and so change ip forwarding and iptables rules, launch dhcp or change the its ip range, and so on...<br><br>What&#39;s we may expect in the future? would be nice to have frameworkd offer nice api to hide and abstract all this tasks? should we ask for connman/networkmanager official/default support in OE?<br>
<br>Regards<br><br>&nbsp;&nbsp; Nicola<br><br><br><br></div>