Re: Segfault in snmp_oid_compare ()
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/5/6 김성호 <[email protected]>: > lsmCRDPTable_createEntry(netsnmp_tdata * table_data, > U64 lsmCRDPTransactionID, What is the syntax of the lsmCRDPTransactionID MIB object? Is it Counter64 or what? > entry->lsmCRDPTransactionID = lsmCRDPTransactionID; > netsnmp_tdata_row_add_index(row, /*ASN_COUNTER64*/ASN_OPAQUE, > &(entry->lsmCRDPTransactionID), > sizeof(entry->lsmCRDPTransactionID)); Two problems here: Firstly, the Net-SNMP suite does not use simple 64-bit integer values directly. It uses a structure counter64 to hold such values. Secondly, you can't use Counter64 (or Opaque) values as the index to a table. This is not valid in SNMP. What is the definition of your MIB table? Dave ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users