Setting up IP address manually.

Hi,

I am using the BeagleBone black for my project, it uses the default Angstorm installation.

I have managed to setup ethernet using the conman tools as described in tutorials.

How can I setup the ethernet IP address from a C or C++ program ???

Please help.

thanks
a