Hi Dave, Thanks! This is working fine now.
Just want to know one more info. Suppose, If I am using 5.1.1 release and want to migrate into 5.1.2 at later stage, how much work will it get involved? Is there any migration document provided for this in the website? Thanks & Regards, Karthik ----- Original Message ----- From: Dave Shield <[EMAIL PROTECTED]> Date: Thu, 15 Jul 2004 10:41:40 +0100 To: "Karthikeyan N" <[EMAIL PROTECTED]> Subject: Re: Counter64 objects retrieval > > > The code I generated for ifXTable is by using the ucd-snmp style. > > > > Also, I gone through the code for ifXTable implementation in the repository. > > That code is generated using the new style i believe. > > Yes. > All new development will use the v5 APIs. The v4-line is dead. > (There will probably be one final bug-fix release of 4.2.7, > but that will be the end). > > > not even in the format of net-snmp 5.1.1 release. am i right? > > Err... I'm not sure what you mean by this. > It uses a different style of helper, agreed. > You'd have to ask Robert about that - this is his baby.... > > > > > here is the exact code which I put inside this var_ifXTable using > > counter64 structure. > > But you're *not* using a counter64 structure: > > > > ret_val = (char *) calloc(1, 21); > > uu_long = <something>;> > > /* storing it in a string format */ > > sprintf(ret_val, "%lld", uu_long); > > > > /* return statement expecting string format */ > > return (u_char *) ret_val; > > > You're using a string representation of a long format. That isn't > what the agent is expecting. It's expecting a "struct counter64" > (You're also failing to pass back the size of this result) > > Try > c64.high = 0; > c64.low = 1; > *var_len = sizeof(struct counter64); > return (u_char *)&c64; > > Dave -- ______________________________________________ IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
