Hi

I'm writing a program to use array-user type table, whose name is "serviceTable".
In order to create row, according to comment I used create_row( ) and 
CONTAINER_INSERT( ) 
in init_serviceTable( ). The modified code is the same as follows.

void
init_serviceTable(void)
{
    initialize_table_serviceTable();

    /*
     * TODO: perform any startup stuff here, such as
     * populating the table with initial data.
     *
     * serviceTable_context * new_row = create_row(index);
     * CONTAINER_INSERT(cb.container,new_row);
     */

    serviceTable_context *new_row = (serviceTable_context *)create_row( 0 );
    new_row->srIndex = 1;
    new_row->srVirtualIP = 100;
    new_row->srPort = 10;
    new_row->srProtocol = 222;
    CONTAINER_INSERT( cb.container, new_row );
}

However, in case of executing make, it prints an error message, such as "undefined 
reference
to 'create_row'". Also, I wonder whether above code is correct. Four lines that start
with "new_row->" are initialization of my table row.

thanks.


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to