>>>>> On Mon, 6 Dec 2010 13:28:29 +0530, sam chacko <samchacko...@gmail.com> 
>>>>> said:

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

sc> memcpy(dstrTempInfoP, ipadress, MAXIPSTRING);

sc> return dstrTempInfoP;

1) make sure dstrTempInfoP is static
2) make sure dstrTempInfoP is 4 bytes in length and not encoded as an
   ascii string like "172.16.10.90" but is instead those 4 values in
   real octets.
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

------------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to