Parameters to netsnmp_table_set_add_indexes()
Joshua Tolley <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <20090609031411.GB20209@eddie> |
I've noticed that mib2c's generated code makes calls to
netsnmp_table_set_add_indexes() something like this one:
netsnmp_table_set_add_indexes(table_set,
ASN_OCTET_STR, /* index: firstIndexField */
ASN_INTEGER, /* index: secondIndexField */
ASN_INTEGER, /* index: thirdIndexField */
0);
What's the final 0 argument for? I've been unable to answer that question for
myself. I've guessed (correctly, I hope) that should I want to add indexes to
a table registration one at a time, rather than all at once, I can call
netsnmp_table_helper_add_index() once per index. But I'm wondering if I need
to add a 0 to the list of index types I pass to
netsnmp_table_helper_add_index(). Thanks in advance for any answers you can
give.
- Josh / eggyknap
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkot04MACgkQRiRfCGf1UMN+1gCfQAtTBYhXo+5b0UGu71jOJkoI nuIAnA9xgpu5dZJmNVBW7RwFhNKCyRqg =Bk2J -----END PGP SIGNATURE-----