> From: xiao ren [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 31, 2008 5:45 PM

>       Maybe I asked a confusing question in last mail. What I 
> really want to know is how to use net-snmp lib api to fetch 
> the correct ip address, thanks!

        The long answer could fill volumes.  The short answer is, "That's not 
possible."  The practical answer is, "Drop all indexes that don't have 3 '.' in 
them and those that start with '127'."  If you only have one left, that's your 
number!  If you don't, then what is the "correct" IP address for a router, 
grasshopper?


        HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to