OpenQNX :: The QNX Community Portal

May 13, 2008 - 12:41 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 52 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kalden
Post subject: Problem getting network settings  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
micro
Post subject: RE: Problem getting network settings  PostPosted: Feb 22, 2008 - 06:24 PM
Senior Member


Joined: Jul 22, 2004
Posts: 315

confstr() could help.
getconf from console for code ;P
 
 View user's profile Send private message  
Reply with quote Back to top
kalden
Post subject: RE: Problem getting network settings  PostPosted: 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...
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.