trap initializing ----what is the " /* insert index here */ " meaning?

2010-01-31 Thread Alexander King
I really think it is a very junior problem.the question much clear like below: int send_fcPorttrap_trap( void ) { netsnmp_variable_list *var_list = NULL; oid fcPorttrap_oid[] = { 1,3,6,1,4,1,30901,2090,2092,0,1 }; oid fcPort_oid[] = { 1,3,6,1,4,1,30901,2090,7000,2,1,2,1,1,1, /* insert

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 03:33, Alexander King wrote: > int > send_fcPorttrap_trap( void ) > { >     netsnmp_variable_list  *var_list = NULL; >     oid fcPorttrap_oid[] = { 1,3,6,1,4,1,30901,2090,2092,0,1 }; >     oid fcPort_oid[] = { 1,3,6,1,4,1,30901,2090,7000,2,1,2,1,1,1, /* insert > index here */ };

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Alexander King
-- Original -- From: "Dave Shield"; Date: Mon, Feb 1, 2010 05:23 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: trap initializing ----what is the " /* insert index here */ " meaning? On 1 February

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
> BTW,the "snmpd daemon auto termination" problem unsolved by now yet. > It make me headache for a long while.I am thinking the code file all days. Then perhaps you should post the code again, including the corrections you have made. Certainly, changing long int *intpp = 8; to long in

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 09:45, Alexander King wrote: > the "snmpd daemon auto termination" problem unsolved by now yet. Please check your use of "snmp_varlist_add_variable()". In particular, pay very careful attention to the fifth (value) parameter, and how this is used with integer-based values. Com

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Alexander King
total permission to do it. Thank you very much! Alex -- Original -- From: "Dave Shield"; Date: Mon, Feb 1, 2010 07:18 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: trap initializing ----what is the " /* inser

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 11:29, Alexander King wrote: > I did not sent the that mail to the list,because the code file is sick. > Dave,if you have time to fix it I have told you exactly where the problem lies. And pointed you at an example of correct usage of the equivalent code. That is as much as I'