I reffered many links to change IP address using C/C++. But I found that its only changing the setting temporary (untill the next reboot) and Once the system is rebooted , the all settings are gone.
I referred below links to achieve it.
Set IP address using SIOCSIFADDR ioctl
etc. but ended up with temporary settings (remains untill the next reboot)
Is there any way to change the settings permanently through C/C++ ?????
Please direct me to the right path.