netsnmp_snmp_pdu.3
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:9k
- .TH "snmp_pdu" 3 "28 Nov 2005" "Version 5.2.1.rc3" "net-snmp" " -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- snmp_pdu - The snmp protocol data unit.
- .PP
- .SH SYNOPSIS
- .br
- .PP
- fC#include <snmp_api.h>fP
- .PP
- .SS "Data Fields"
- .in +1c
- .ti -1c
- .RI "long fBversionfP"
- .br
- .RI "fIsnmp version fP"
- .ti -1c
- .RI "int fBcommandfP"
- .br
- .RI "fIType of this PDU. fP"
- .ti -1c
- .RI "long fBreqidfP"
- .br
- .RI "fIRequest id - note: not incremented on retries. fP"
- .ti -1c
- .RI "long fBmsgidfP"
- .br
- .RI "fIMessage id for V3 messages note: incremented for each retry. fP"
- .ti -1c
- .RI "long fBtransidfP"
- .br
- .RI "fIUnique ID for incoming transactions. fP"
- .ti -1c
- .RI "long fBsessidfP"
- .br
- .RI "fISession id for AgentX messages. fP"
- .ti -1c
- .RI "long fBerrstatfP"
- .br
- .RI "fIError status (non_repeaters in GetBulk). fP"
- .ti -1c
- .RI "long fBerrindexfP"
- .br
- .RI "fIError index (max_repetitions in GetBulk). fP"
- .ti -1c
- .RI "u_long fBtimefP"
- .br
- .RI "fIUptime. fP"
- .ti -1c
- .RI "u_long fBflagsfP"
- .br
- .ti -1c
- .RI "int fBsecurityModelfP"
- .br
- .ti -1c
- .RI "int fBsecurityLevelfP"
- .br
- .RI "fInoAuthNoPriv, authNoPriv, authPriv fP"
- .ti -1c
- .RI "int fBmsgParseModelfP"
- .br
- .ti -1c
- .RI "void * fBtransport_datafP"
- .br
- .RI "fITransport-specific opaque data. fP"
- .ti -1c
- .RI "int fBtransport_data_lengthfP"
- .br
- .ti -1c
- .RI "const oid * fBtDomainfP"
- .br
- .RI "fIThe actual transport domain. fP"
- .ti -1c
- .RI "size_t fBtDomainLenfP"
- .br
- .ti -1c
- .RI "fBnetsnmp_variable_listfP * fBvariablesfP"
- .br
- .ti -1c
- .RI "u_char * fBcommunityfP"
- .br
- .RI "fIcommunity for outgoing requests. fP"
- .ti -1c
- .RI "size_t fBcommunity_lenfP"
- .br
- .RI "fIlength of community name. fP"
- .ti -1c
- .RI "oid * fBenterprisefP"
- .br
- .RI "fISystem OID. fP"
- .ti -1c
- .RI "size_t fBenterprise_lengthfP"
- .br
- .ti -1c
- .RI "long fBtrap_typefP"
- .br
- .RI "fItrap type fP"
- .ti -1c
- .RI "long fBspecific_typefP"
- .br
- .RI "fIspecific type fP"
- .ti -1c
- .RI "unsigned char fBagent_addrfP [4]"
- .br
- .RI "fIThis is ONLY used for v1 TRAPs. fP"
- .ti -1c
- .RI "u_char * fBcontextEngineIDfP"
- .br
- .RI "fIcontext snmpEngineID fP"
- .ti -1c
- .RI "size_t fBcontextEngineIDLenfP"
- .br
- .RI "fILength of contextEngineID. fP"
- .ti -1c
- .RI "char * fBcontextNamefP"
- .br
- .RI "fIauthoritative contextName fP"
- .ti -1c
- .RI "size_t fBcontextNameLenfP"
- .br
- .RI "fILength of contextName. fP"
- .ti -1c
- .RI "u_char * fBsecurityEngineIDfP"
- .br
- .RI "fIauthoritative snmpEngineID for security fP"
- .ti -1c
- .RI "size_t fBsecurityEngineIDLenfP"
- .br
- .RI "fILength of securityEngineID. fP"
- .ti -1c
- .RI "char * fBsecurityNamefP"
- .br
- .RI "fIon behalf of this principal fP"
- .ti -1c
- .RI "size_t fBsecurityNameLenfP"
- .br
- .RI "fILength of securityName. fP"
- .ti -1c
- .RI "int fBpriorityfP"
- .br
- .ti -1c
- .RI "int fBrange_subidfP"
- .br
- .ti -1c
- .RI "void * fBsecurityStateReffP"
- .br
- .in -1c
- .SH "Detailed Description"
- .PP
- The snmp protocol data unit.
- .PP
- Definition at line 75 of file snmp_api.h.
- .SH "Field Documentation"
- .PP
- .SS "unsigned char fBsnmp_pdu::agent_addrfP[4]"
- .PP
- This is ONLY used for v1 TRAPs.
- .PP
- Definition at line 142 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), netsnmp_send_traps(), snmp_pdu_build(), and snmp_pdu_parse().
- .SS "int fBsnmp_pdu::commandfP"
- .PP
- Type of this PDU.
- .PP
- Definition at line 83 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), handle_pdu(), handle_snmp_packet(), netsnmp_add_varbind_to_cache(), netsnmp_agent_check_parse(), netsnmp_check_outstanding_agent_requests(), netsnmp_create_subtree_cache(), netsnmp_handle_request(), netsnmp_send_traps(), netsnmp_wrap_up_request(), save_set_cache(), send_trap_to_sess(), snmp_fix_pdu(), snmp_pdu_build(), snmp_pdu_create(), snmp_pdu_parse(), snmpv3_make_report(), and snmpv3_scopedPDU_parse().
- .SS "u_char* fBsnmp_pdu::communityfP"
- .PP
- community for outgoing requests.
- .PP
- Definition at line 127 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), and snmp_free_pdu().
- .SS "size_t fBsnmp_pdu::community_lenfP"
- .PP
- length of community name.
- .PP
- Definition at line 129 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2().
- .SS "u_char* fBsnmp_pdu::contextEngineIDfP"
- .PP
- context snmpEngineID
- .PP
- Definition at line 148 of file snmp_api.h.
- .PP
- Referenced by snmp_free_pdu(), snmpv3_make_report(), snmpv3_parse(), and snmpv3_scopedPDU_parse().
- .SS "size_t fBsnmp_pdu::contextEngineIDLenfP"
- .PP
- Length of contextEngineID.
- .PP
- Definition at line 150 of file snmp_api.h.
- .PP
- Referenced by snmpv3_make_report(), snmpv3_parse(), and snmpv3_scopedPDU_parse().
- .SS "char* fBsnmp_pdu::contextNamefP"
- .PP
- authoritative contextName
- .PP
- Definition at line 152 of file snmp_api.h.
- .PP
- Referenced by netsnmp_create_subtree_cache(), snmp_free_pdu(), snmpv3_make_report(), and snmpv3_scopedPDU_parse().
- .SS "size_t fBsnmp_pdu::contextNameLenfP"
- .PP
- Length of contextName.
- .PP
- Definition at line 154 of file snmp_api.h.
- .PP
- Referenced by snmp_pdu_create(), snmpv3_make_report(), and snmpv3_scopedPDU_parse().
- .SS "oid* fBsnmp_pdu::enterprisefP"
- .PP
- System OID.
- .PP
- Definition at line 135 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), netsnmp_send_traps(), snmp_free_pdu(), snmp_pdu_build(), and snmp_pdu_parse().
- .SS "long fBsnmp_pdu::errindexfP"
- .PP
- Error index (max_repetitions in GetBulk).
- .PP
- Definition at line 95 of file snmp_api.h.
- .PP
- Referenced by _reorder_getbulk(), netsnmp_agent_check_parse(), netsnmp_create_subtree_cache(), netsnmp_wrap_up_request(), snmp_fix_pdu(), snmp_pdu_build(), snmp_pdu_create(), snmp_pdu_parse(), and snmpv3_make_report().
- .SS "long fBsnmp_pdu::errstatfP"
- .PP
- Error status (non_repeaters in GetBulk).
- .PP
- Definition at line 93 of file snmp_api.h.
- .PP
- Referenced by _reorder_getbulk(), handle_snmp_packet(), netsnmp_agent_check_parse(), netsnmp_create_subtree_cache(), netsnmp_wrap_up_request(), snmp_fix_pdu(), snmp_pdu_build(), snmp_pdu_create(), snmp_pdu_parse(), and snmpv3_make_report().
- .SS "long fBsnmp_pdu::msgidfP"
- .PP
- Message id for V3 messages note: incremented for each retry.
- .PP
- Definition at line 87 of file snmp_api.h.
- .PP
- Referenced by snmp_fix_pdu(), snmp_pdu_create(), and snmpv3_parse().
- .SS "long fBsnmp_pdu::reqidfP"
- .PP
- Request id - note: not incremented on retries.
- .PP
- Definition at line 85 of file snmp_api.h.
- .PP
- Referenced by snmp_fix_pdu(), snmp_pdu_build(), snmp_pdu_create(), and snmp_pdu_parse().
- .SS "u_char* fBsnmp_pdu::securityEngineIDfP"
- .PP
- authoritative snmpEngineID for security
- .PP
- Definition at line 156 of file snmp_api.h.
- .PP
- Referenced by snmp_free_pdu(), snmpv3_make_report(), snmpv3_packet_build(), snmpv3_parse(), and snmpv3_scopedPDU_parse().
- .SS "size_t fBsnmp_pdu::securityEngineIDLenfP"
- .PP
- Length of securityEngineID.
- .PP
- Definition at line 158 of file snmp_api.h.
- .PP
- Referenced by snmpv3_make_report(), snmpv3_packet_build(), snmpv3_parse(), and snmpv3_scopedPDU_parse().
- .SS "int fBsnmp_pdu::securityLevelfP"
- .PP
- noAuthNoPriv, authNoPriv, authPriv
- .PP
- Definition at line 102 of file snmp_api.h.
- .PP
- Referenced by snmpv3_make_report(), snmpv3_packet_build(), and snmpv3_parse().
- .SS "char* fBsnmp_pdu::securityNamefP"
- .PP
- on behalf of this principal
- .PP
- Definition at line 160 of file snmp_api.h.
- .PP
- Referenced by snmp_free_pdu(), snmpv3_packet_build(), and snmpv3_parse().
- .SS "size_t fBsnmp_pdu::securityNameLenfP"
- .PP
- Length of securityName.
- .PP
- Definition at line 162 of file snmp_api.h.
- .PP
- Referenced by snmp_pdu_create(), snmpv3_packet_build(), and snmpv3_parse().
- .SS "long fBsnmp_pdu::sessidfP"
- .PP
- Session id for AgentX messages.
- .PP
- Definition at line 91 of file snmp_api.h.
- .PP
- Referenced by send_trap_to_sess().
- .SS "long fBsnmp_pdu::specific_typefP"
- .PP
- specific type
- .PP
- Definition at line 140 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), netsnmp_send_traps(), snmp_pdu_build(), and snmp_pdu_parse().
- .SS "const oid* fBsnmp_pdu::tDomainfP"
- .PP
- The actual transport domain.
- .PP
- This SHOULD NOT BE FREE()D.
- .PP
- Definition at line 117 of file snmp_api.h.
- .PP
- Referenced by snmp_create_sess_pdu().
- .SS "u_long fBsnmp_pdu::timefP"
- .PP
- Uptime.
- .PP
- Definition at line 97 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), netsnmp_send_traps(), snmp_pdu_build(), snmp_pdu_create(), and snmp_pdu_parse().
- .SS "long fBsnmp_pdu::transidfP"
- .PP
- Unique ID for incoming transactions.
- .PP
- Definition at line 89 of file snmp_api.h.
- .PP
- Referenced by check_delayed_request(), get_set_cache(), netsnmp_check_transaction_id(), netsnmp_create_delegated_cache(), and save_set_cache().
- .SS "void* fBsnmp_pdu::transport_datafP"
- .PP
- Transport-specific opaque data.
- .PP
- This replaces the IP-centric address field.
- .PP
- Definition at line 110 of file snmp_api.h.
- .PP
- Referenced by snmp_create_sess_pdu(), snmp_free_pdu(), and snmp_pdu_create().
- .SS "long fBsnmp_pdu::trap_typefP"
- .PP
- trap type
- .PP
- Definition at line 138 of file snmp_api.h.
- .PP
- Referenced by convert_v1pdu_to_v2(), convert_v2pdu_to_v1(), netsnmp_send_traps(), snmp_pdu_build(), and snmp_pdu_parse().
- .SS "long fBsnmp_pdu::versionfP"
- .PP
- snmp version
- .PP
- Definition at line 81 of file snmp_api.h.
- .PP
- Referenced by check_access(), handle_snmp_packet(), in_a_view(), netsnmp_acm_check_subtree(), netsnmp_wrap_up_request(), send_trap_to_sess(), snmp_pdu_create(), and snmpv3_parse().
- .SH "Author"
- .PP
- Generated automatically by Doxygen for net-snmp from the source code.