Hello, I'm newcomer at net-snmp community. In our firm we want to build snmp agent, responsible for collecting data about status of connected HW modules to the main platform, running on embedded Linux. Our test system is still running on RH 9.0. I used mib2c compiler, access_functions template and ENTITY-MIB (part of mib-2) to build source c and h files.
For the test example I added necessary code in every get/set function that every function return static value, declarated and defined in function itself. For example: oid * get_entPhysicalVendorType(void *data_context, size_t * ret_len) { static u_long iPhysDVendType= 1; my_data_info *datainfo = data_context; DEBUGMSGTL(("entityTable", "get_entPhysicalVendorType: %d\n", iPhysDVendType)); *ret_len = sizeof (iPhysDVendType); return &iPhysDVendType; /** XXX: replace this with a pointer to a real value */ } Example works fine... until I start it in deamon mode (without swich -f). Then process is started (viewable with ps -ef), default udp port is opened (viewable with netstat), but deamon does not respond any more. Does anybody have any idea what happens? Thanks, Igor Igor Grasic, Ms. D. Development Engineer Iskra Transmission, d. d., Ljubljana Stegne 11, SI-1000 Ljubljana, Slovenia phone: +386 1 5003 000 fax: +386 1 5003 500 www.iskratr.si, www.iskratr.com ........................................................ ------------------------------------------------------- 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