problem with table_handler

Rashmi M Bangera <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
i am trying to implement Ethernet-Like Interface MIB....I compiled the
MIB file using mib2c iterate_access.conf. I have used ioctl calls to
fetch the data and it is set in the get_first_data_item and 
get_next_data_item.
The problem is with table_handler..The control goes to 
sprint_realloc_integer()
and then there is a segmentation fault...

case MODE_GET:
            switch (table_info->colnum) {
            case COLUMN_DOT3STATSINDEX:
        {
            long *index;
            size_t len;
            index = getIndex(data_context,&len);
                             smp_set_var_typed_value(var, ASN_INTEGER,
                                         (u_char *)index
                                         ,len);
        }
                break;

i am using net-snmp version 5.1.3

Thanks,
-Rashmi
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.