Meaning of flags fields to create a row in a table - need help.

Helcio Silva <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAGMsdVZJKQvdPXkO+bxKRywjRUPJTdJeuGdEAcK+P3XxLDAvTw@mail.gmail.com>
   Hi, gentlemen.

   I have a table with a row composed by following columns:

   - name (OCTET STRING, index)
   - score (INTEGER)
   - status (RowStatus)

   I am using mib2c with mfd.conf option to create skeleton files. One
of structures created is shown below:

--
typedef struct mySimpleTable_rowreq_ctx_s {

    /** this must be first for container compare to work */
    netsnmp_index        oid_idx;
    oid                  oid_tmp[MAX_mySimpleTable_IDX_LEN];

    mySimpleTable_mib_index        tbl_idx;

    mySimpleTable_data              data;
    mySimpleTable_undo_data       * undo;
    unsigned int                column_set_flags; /* flags for set columns */


    /*
     * flags per row. Currently, the first (lower) 8 bits are reserved
     * for the user. See mfd.h for other flags.
     */
    u_int                       rowreq_flags;

    /*
     * TODO:131:o: |   |-> Add useful data to mySimpleTable rowreq context.
     */

    /*
     * storage for future expansion
     */
    netsnmp_data_list             *mySimpleTable_data_list;

} mySimpleTable_rowreq_ctx;
---

   Since I want to enable row creation in that table, that is my
question: what values should I put on 'column_set_flags' and
'rowreq_flags' fields when I use the structure above?

   Best regards.

   Helcio.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.