[Fwd: [Fwd: Re: Problem with sprint_realloc_iteger()]]

2006-03-20 Thread Rashmi M Bangera
Hi, i have included the sections of my code. getIndex method is as follows. long* getIndex(void *data_context,int *len) {     udata *ud = data_context;     *len = sizeof(ud->ifindex);     return &ud->ifindex; } structure udata contains all the interface details fetched from ioctl call i

[Fwd: Re: Problem with sprint_realloc_iteger()]

2006-03-17 Thread Rashmi M Bangera
Original Message Subject: Re: Problem with sprint_realloc_iteger() Date: Fri, 17 Mar 2006 10:53:10 +0530 From: Rashmi M Bangera <[EMAIL PROTECTED]> To: Dave Shield <[EMAIL

Re: Problem with sprint_realloc_iteger()

2006-03-15 Thread Dave Shield
On Wed, 2006-03-15 at 12:11 +0530, Rashmi M Bangera wrote: > The problem is, when i use snmptable command, the code fails at > sprintf() statement in the sprint_realloc_integer() function. > > case MODE_GET: > switch (table_info->colnum) { > case COLUMN_DOT3STATSINDEX: >

Problem with sprint_realloc_iteger()

2006-03-14 Thread Rashmi M Bangera
I am implementing ethernetlike 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, when i use snmptable command, the code fails at sprintf() statement in