Dave,
The following is the snippet where all the ***actions*** are:
for (i = 0; i < MAX_APS; i++) {
my_handler[i] =
netsnmp_create_handler_registration(
//"apFrameId", netsnmp_instance_int_handler,
"apFrameId", netsnmp_scalar_helper_handler,
apFrameId_oid, OID_LENGTH(apFrameId_oid),
HANDLER_CAN_RWRITE);
my_handler[i]->contextEngineId = getContextEngIdAtLoc(i); // This
generates the required engineIds
my_handler[i]->handler->myvoid = (void *)(apxApScalars +
MAX_APS * APFRAMEID_INDEX + i);
netsnmp_register_scalar(my_handler[i]);
}
Thanks and regards,
Arijit
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 5:09 PM
To: Mukherjee, Arijit (Arijit)
Cc: [EMAIL PROTECTED]
Subject: Re: Which handler to use for DisplayString type
> However, I still need to specify the name of the instance handler in
> netsnmp_create_handler_registration. So, I did not quite get, how I can do
> *without* specifying the "netsnmp_scalar_helper_handler" by name in
> netsnmp_create_handler_registration.
>
> Also, if I specify the netsnmp_scalar_helper_handler as second arg in
the
> netsnmp_create_handler_registration function call, the illegal call to
> netsnmp_call_handler() is reported in the agent.
>
> So, if I have to specify the netsnmp_instance_int_handler in the
> netsnmp_create_handler_registration function call, I have not achieved the
> case where the handler is datatype independant.
Perhaps if you could post the code that you are using,
it would be easier to see where you are going wrong.
Dave
-------------------------------------------------------
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-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