#include <snmp_api.h>
変数 | |
| 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 |
| snmp_session * | subsession |
| 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 | |
| void * | myvoid |
| use as you want data | |
snmp_api.h の 187 行で定義されています。
| u_char*(* snmp_session::authenticator)(u_char *, size_t *, u_char *, size_t) |
| netsnmp_callback snmp_session::callback |
Function to interpret incoming data
snmp_api.h の 214 行で定義されています。
参照元 _sess_read()・netsnmp_register_agent_nsap()・snmp_sess_synch_response()・snmp_sess_timeout()・snmp_synch_response_cb().
Pointer to data that the callback function may consider important
snmp_api.h の 218 行で定義されています。
参照元 _sess_read()・snmp_sess_synch_response()・snmp_sess_timeout()・snmp_synch_response_cb().
| u_char* snmp_session::community |
| size_t snmp_session::community_len |
| u_char* snmp_session::contextEngineID |
| size_t snmp_session::contextNameLen |
| u_int snmp_session::engineTime |
| u_short snmp_session::local_port |
| char* snmp_session::localname |
| void* snmp_session::myvoid |
| char* snmp_session::paramName |
| char* snmp_session::peername |
name or address of default peer (may include transport specifier and/or port number)
snmp_api.h の 202 行で定義されています。
| size_t snmp_session::rcvMsgMaxSize |
| u_short snmp_session::remote_port |
UDP port number of peer.
(NO LONGER USED - USE peername INSTEAD)
snmp_api.h の 204 行で定義されています。
参照元 snmp_sess_init().
Number of retries before timeout.
snmp_api.h の 194 行で定義されています。
参照元 create_trap_session()・snmp_sess_init()・snmp_sess_timeout().
copy of library errno
snmp_api.h の 222 行で定義されています。
参照元 _sess_read()・handle_snmp_packet()・snmp_build()・snmp_error()・snmp_sess_add_ex()・snmp_sess_async_send()・snmp_sess_open()・snmp_sess_read()・snmpv3_engineID_probe().
| u_char snmp_session::securityAuthKey[USM_AUTH_KU_LEN] |
| u_char* snmp_session::securityEngineID |
authoritative snmpEngineID
snmp_api.h の 256 行で定義されています。
参照元 create_user_from_session()・snmpd_parse_config_trapsess()・snmpv3_engineID_probe().
Length of contextEngineID
snmp_api.h の 258 行で定義されています。
参照元 create_user_from_session()・snmpd_parse_config_trapsess()・snmpv3_engineID_probe().
snmp security model, v1, v2c, usm
snmp_api.h の 291 行で定義されています。
参照元 create_user_from_session()・snmp_sess_close()・snmp_sess_init().
| u_char snmp_session::securityPrivKey[USM_PRIV_KU_LEN] |
| long snmp_session::sessid |
| size_t snmp_session::sndMsgMaxSize |
1.4.7