Problem getting network settings

I need to be able to programmatically get my network settings in QNX 6.3. Currently i can get the IP address and netmask using an ioctl call, but I can’t figure out how I can find if DHCP is enabled.

Is there a way to do this without parsing net.cfg?

Thanks.

confstr() could help.
getconf from console for code :stuck_out_tongue_winking_eye:

Hmm, never thought to check an environment variable. What environment variable do i check for DHCP status?

edit–
OK I checked all the CS variables that can be passed to confstr and none have anything to do with DHCP.

Maybe I can check to see if dhcp.client is running. hmmm…