On 08/12/06, Alef Veld <[EMAIL PROTECTED]> wrote: > if(vars->type==ASN_TIMETICKS) { > if(i==1) data->sysUpTime=vars->val.integer; > }
> if(vars->type==ASN_INTEGER) { > if(i==5) data->ipForwarding=vars->val.integer; > if(i==6) data->ifNumber=vars->val.integer; > } Remember that the 'integer' field is a *pointer* to the value, not the value itself. What happens if you try: data->sysUpTime=*vars->val.integer; data->ipForwarding=*vars->val.integer; data->ipNumber=*vars->val.integer; ? Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders