Hi,
Currently , I am trying to implement the counter64 objects in ifXTable ( example :
ifHCInOctets). I generated the code in uce-snmp style and it generates the code with
var_XXX() methods.
Inside the IFHCINOCTETS case statement I retrieved the value through ioctl calls and
storing the value in "unsigned long long" type in linux. say, for example,
var_ifXTable(.....)
{
unsigned long long ret_val;
switch (vp->magic)
{
.............
.............
case IFHCINOCTETS:
ret_val = 20; /* retrived using ioctl calls */
return (u_char *) &ret_val;
.............
.............
}
}
The above code is compiled and tested in run-time, which results in "timeout response"
while doing a snmpget for ifHCInOctets.
Please clarify on the above to use the counter64 variables in net-snmp.
For your info, I tried the same using the "counter64 structure" defined in net-snmp
instead of using "unsigned long long", but still the problem is there.
Please clarify is this a bug or am I missing something???
Thanks & Regards,
Karthik
--
______________________________________________
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 sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders