RE: Community string field in netsnmp-session structure gettingcorrupted.

2008-03-26 Thread singh.srajendra
Yes I did it . I also did a printing of the session variables before snmp_open and it was printing correctly but When I passed it to snmp_open and tried printing the variables there I got NULL for trap community string and 0 for trap community length. -Original Message- From: Roy M. Si

Community string field in netsnmp-session structure getting corrupted.

2008-03-26 Thread singh.srajendra
Hi all, I am calling snmp_open(&session) in a C++ function. Before passing session variable to snmp_open I have initialized it properly with the value of peer name , version , community string. But if I print it inside snmp_open() I am getting NULL for community string field but for others ie ver