Lines Matching defs:session
56 struct snmp_session session, *ss;
61 /* initialize the SNMP session */
62 snmp_sess_init(&session);
63 session.peername = host;
64 session.community = (uchar_t *)community;
65 session.community_len = strlen((const char *)session.community);
66 session.version = SNMP_VERSION_1;
67 session.retries = 0;
69 if ((ss = snmp_open(&session)) == NULL)