Data Fields |
| long | version |
| | snmp version
|
| int | retries |
| | Number of retries before timeout.
|
| long | timeout |
| | Number of uS until first timeout, then exponential backoff.
|
|
u_long | flags |
|
struct snmp_session * | subsession |
|
struct snmp_session * | next |
| char * | peername |
| | name or address of default peer (may include transport specifier and/or port number)
|
| u_short | remote_port |
| | UDP port number of peer.
|
| char * | localname |
| | My Domain name or dotted IP address, 0 for default.
|
| u_short | local_port |
| | My UDP port number, 0 for default, picked randomly.
|
| u_char *(* | authenticator )(u_char *, size_t *, u_char *, size_t) |
| | Authentication function or NULL if null authentication is used.
|
| netsnmp_callback | callback |
| | Function to interpret incoming data.
|
| void * | callback_magic |
| | Pointer to data that the callback function may consider important.
|
| int | s_errno |
| | copy of system errno
|
| int | s_snmp_errno |
| | copy of library errno
|
| long | sessid |
| | Session id - AgentX only.
|
| u_char * | community |
| | community for outgoing requests.
|
| size_t | community_len |
| | Length of community name.
|
| size_t | rcvMsgMaxSize |
| | Largest message to try to receive.
|
| size_t | sndMsgMaxSize |
| | Largest message to try to send.
|
| u_char | isAuthoritative |
| | are we the authoritative engine?
|
| u_char * | contextEngineID |
| | authoritative snmpEngineID
|
| size_t | contextEngineIDLen |
| | Length of contextEngineID.
|
| u_int | engineBoots |
| | initial engineBoots for remote engine
|
| u_int | engineTime |
| | initial engineTime for remote engine
|
| char * | contextName |
| | authoritative contextName
|
| size_t | contextNameLen |
| | Length of contextName.
|
| u_char * | securityEngineID |
| | authoritative snmpEngineID
|
| size_t | securityEngineIDLen |
| | Length of contextEngineID.
|
| char * | securityName |
| | on behalf of this principal
|
| size_t | securityNameLen |
| | Length of securityName.
|
| oid * | securityAuthProto |
| | auth protocol oid
|
| size_t | securityAuthProtoLen |
| | Length of auth protocol oid.
|
| u_char | securityAuthKey [USM_AUTH_KU_LEN] |
| | Ku for auth protocol XXX.
|
| size_t | securityAuthKeyLen |
| | Length of Ku for auth protocol.
|
| u_char * | securityAuthLocalKey |
| | Kul for auth protocol.
|
| size_t | securityAuthLocalKeyLen |
| | Length of Kul for auth protocol XXX.
|
| oid * | securityPrivProto |
| | priv protocol oid
|
| size_t | securityPrivProtoLen |
| | Length of priv protocol oid.
|
| u_char | securityPrivKey [USM_PRIV_KU_LEN] |
| | Ku for privacy protocol XXX.
|
| size_t | securityPrivKeyLen |
| | Length of Ku for priv protocol.
|
| u_char * | securityPrivLocalKey |
| | Kul for priv protocol.
|
| size_t | securityPrivLocalKeyLen |
| | Length of Kul for priv protocol XXX.
|
| int | securityModel |
| | snmp security model, v1, v2c, usm
|
| int | securityLevel |
| | noAuthNoPriv, authNoPriv, authPriv
|
| char * | paramName |
| | target param name
|
| void * | securityInfo |
| | security module specific
|
| struct netsnmp_container_s * | transport_configuration |
| | transport specific configuration
|
| void * | myvoid |
| | use as you want data
|
The snmp session structure.
Definition at line 289 of file types.h.