> I am new to the list. I am trying to make a connman plugin that requires
> to mount and configure a network interface.
> 
> Today I do it through some simple scripting such as calling ifconfig with
> some IP address and modifying the /etc/resolv.conf.
> 
> I suspect this is not good usage of connman. How can I tell connman to set
> up and configure a network interface and give it some DNS servers IP
> address entries.
> 
> I have connman0.19 installed on a moblin 2 VMware image target

Hi Jonathan,

If you create a device element with MODE_TRANSPORT_IP you can use set_carrier() 
to indicate if it is connected or not. If you set the property IPv4.Method = 
static and specify the other IPv4 properties with the desired setting then 
ConnMan will create an IPv4 element for you in the background and configure the 
network interface accordingly. It will also update the default routing and DNS 
server according to the properties specified.

In your case you should be able to use TYPE_VENDOR as type.

Cheers,
Waldo
_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman

Reply via email to