Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Detecting network settings: (2 Items)
   
Detecting network settings  
I am trying to programmaticaly detect my current network settings in QNX 6.3.  I am able to get netmask and IP address, 
but I can't find a way to detect if DHCP is enabled for a network interface. 

Any idea how I may get this information without parsing net.cfg?  Thanks.
Re: Detecting network settings  
On Fri, Feb 22, 2008 at 11:13:09AM -0500, Kevin Alden wrote:
> I am trying to programmaticaly detect my current network settings in QNX 6.3.  I am able to get netmask and IP address
, but I can't find a way to detect if DHCP is enabled for a network interface. 
> 
> Any idea how I may get this information without parsing net.cfg?  Thanks.
> 

None that I'm aware of.  'dhcp.client' is simply a utility
that uses networking services so it's sort of like asking if
'ping' is enabled on an interface.  You could check if it's
running but that doesn't tell you which interface(s) it's
operating on.

-seanb