Hi folks,
I have add difficulties adding a new row from the default row I already have.
Basically I would like to have a "oid.COLUMN_SENSE1.1" and "oid.COLUMN_SENSE1.2"
but I can only make the first.
I have tried to do another netsnmp_create_table_data_row(); and repeat the
process below but it does not work.
Any idea ? Thanks
Here is my snippet:
.
.
netsnmp_table_dataset_add_row(table_set, row);
row = netsnmp_create_table_data_row();
netsnmp_table_row_add_index(row, ASN_INTEGER, &pkt->index,
sizeof(pkt->index));
netsnmp_table_row_add_index(row, ASN_INTEGER, &pkt->index,
sizeof(pkt->index));
current_index = 1;
while(current_index<=COLUMN_SENSE1)
{
switch(current_index)
{
case COLUMN_SENSEINDEX:
{
netsnmp_set_row_column(row, COLUMN_SENSEINDEX, ASN_INTEGER,
(char*) &pkt->senseIndex, sizeof(pkt->senseIndex));
netsnmp_mark_row_column_writable(row, COLUMN_SENSEINDEX, 0);
break;
}
case COLUMN_SENSE1:
{
netsnmp_set_row_column(row, COLUMN_SENSE1, ASN_OCTET_STR,
pkt->senseText, strlen(pkt->senseText));
netsnmp_mark_row_column_writable(row, COLUMN_SENSE1, 1);
break;
}
}
current_index++;
}
netsnmp_table_dataset_add_row(table_set, row);
.
.
.
Yan~
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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