| Author |
Message |
|
|
Post subject: Problem getting network settings
Posted: Feb 22, 2008 - 06:05 PM
|
|
New Member
Joined: Feb 22, 2008
Posts: 3
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Problem getting network settings
Posted: Feb 22, 2008 - 06:24 PM
|
|
Senior Member
Joined: Jul 22, 2004
Posts: 315
|
|
confstr() could help.
getconf from console for code ;P |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Problem getting network settings
Posted: Feb 22, 2008 - 07:11 PM
|
|
New Member
Joined: Feb 22, 2008
Posts: 3
|
|
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... |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|