title: linux embedded programming method - network setting
body: <p>I might missing out something in the general concept because I searched and didn't find answer for that...
  I'm writing a GUI application in embedded Linux, C language. I would like to allow the user to change the network setting:</p>
  
  <ul>
  <li>DHCP client mode - I have busybox with uDHCPc application on the file system.</li>
  <li>If DHCP disabled, then configure the IP, subnet, gateway.</li>
  </ul>
  
  <p>I already found out that IP, subnet and gateway can be changed using ioctl on a socket.
  The only way I found to activate uDHCPc from my application is by calling the function: system(...) for execute shell command and this way awkward just like running a shell sript which run ifconfig for get/set ip address.</p>
  
  <p>What is the right/common way for run "script activity" (DHCP enable/disable; read/write system setting) from my C application in embedded linux?</p>
  
  <p>Thanks.</p>