Dear net-snmp development workers:

   I am tommy_hung.I have some trouble! When I view traceRouteCtlTable of the 
Disman-MIB.The net-snmp demon will crash.
I try to find the  answer, and I have found that, there was some error in 
traceRouteCtlTable.c , The code snippet is as following:

The example is "run_traceRoute function" in the traceRouteCtlTable.c
/**********************************************/
        cp = "icmp";
        if ((pe = getprotobyname(cp)) == NULL) {
            DEBUGMSGTL(("traceRouteCtlTable",
                        "unknown protocol %s\n", cp));
            exit(1);     
        }          
/*********************************************/

The result is exit(1);

Because i have printed "pe".

fprintf(pe=%s,pe);
/***************************************************************************************/
Result:
pe = (Null) 

So the mistake was happened to execute exit(1),I don't know how to sloved the 
problem.
Have i forgot to set up the somethings?Or what do i lost the components ?
/***************************************************************************************/

So , could you help me to slove those mazy ? Please......
Thank you very much!!

Tommy_Hung
Best Regards
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to