---------- Forwarded message ----------
From: sam chacko <[email protected]>
Date: 6 December 2010 13:27
Subject: Re: Regarding IP adress
To: Magnus Fromreide <[email protected]>



hi,

Thanks  for  your  quick  response.  i am  just  posting the  code snippet
for  getting the  IP address OID .

  case :    ADMYIPADDRESS:
     getmyIPadress(&ipadress);    /this is  our own function  which fills
the IP adrees  to the given buffer */

     memcpy(dstrTempInfoP, ipadress, MAXIPSTRING);

      return dstrTempInfoP;

the above shows the code snippet for  the ipadress  OID .  the getmyipadress
will  fill the host ip adress to the given buffer . and if we print that ip
adress buffer it will  give the value  like  "172.16.10.90" , but whenever
if we do  snmpget for that particular  OID we will get some incorrect value
. in which format we have to give the IP address value  ?. Help regarding
this will be appreciated  . thanks in advance

thanks & regards
sam



On 6 December 2010 13:01, Magnus Fromreide <[email protected]> wrote:

> On Mon, 2010-12-06 at 12:16 +0530, sam chacko wrote:
> > hi
> >
> > if we have  a  OID which will display the IP address  . we are
> > providing   IP adress  in Hex form, but value  we are  getting in
> > snmpget is not correct( ie not expected ), any help  regarding this
> > will be appreciated.
>
> Please show us the code. If it is secret then show us a small test
> program with the same problem.
>
> Right now you are asking us to guess how your code looks and thus what
> the problem might be and that is pretty hard.
>
> Remember the rules for a good bug report:
>
> 1. What did you do?
> 2. What did you expect to happen?
> 3. What did happen?
>
> Whit all this said I'd guess that you either have a byte order problem
> somewhere or you are passing the value of the ip address to the
> set_value function instead of a pointer to the ip address.
>
> /MF
>
>
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to