blob: ad658f4dbc16515207bbeb56b725880fea0148e4 [file] [log] [blame]
.TH "snmp_pdu" 3 "31 May 2012" "Version 5.5.2.rc2" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
snmp_pdu \-
.PP
The snmp protocol data unit.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <types.h>\fP
.SS "Data Fields"
.in +1c
.ti -1c
.RI "long \fBversion\fP"
.br
.RI "\fIsnmp version \fP"
.ti -1c
.RI "int \fBcommand\fP"
.br
.RI "\fIType of this PDU. \fP"
.ti -1c
.RI "long \fBreqid\fP"
.br
.RI "\fIRequest id - note: not incremented on retries. \fP"
.ti -1c
.RI "long \fBmsgid\fP"
.br
.RI "\fIMessage id for V3 messages note: incremented for each retry. \fP"
.ti -1c
.RI "long \fBtransid\fP"
.br
.RI "\fIUnique ID for incoming transactions. \fP"
.ti -1c
.RI "long \fBsessid\fP"
.br
.RI "\fISession id for AgentX messages. \fP"
.ti -1c
.RI "long \fBerrstat\fP"
.br
.RI "\fIError status (non_repeaters in GetBulk). \fP"
.ti -1c
.RI "long \fBerrindex\fP"
.br
.RI "\fIError index (max_repetitions in GetBulk). \fP"
.ti -1c
.RI "u_long \fBtime\fP"
.br
.RI "\fIUptime. \fP"
.ti -1c
.RI "u_long \fBflags\fP"
.br
.ti -1c
.RI "int \fBsecurityModel\fP"
.br
.ti -1c
.RI "int \fBsecurityLevel\fP"
.br
.RI "\fInoAuthNoPriv, authNoPriv, authPriv \fP"
.ti -1c
.RI "int \fBmsgParseModel\fP"
.br
.ti -1c
.RI "void * \fBtransport_data\fP"
.br
.RI "\fITransport-specific opaque data. \fP"
.ti -1c
.RI "int \fBtransport_data_length\fP"
.br
.ti -1c
.RI "const oid * \fBtDomain\fP"
.br
.RI "\fIThe actual transport domain. \fP"
.ti -1c
.RI "size_t \fBtDomainLen\fP"
.br
.ti -1c
.RI "\fBnetsnmp_variable_list\fP * \fBvariables\fP"
.br
.ti -1c
.RI "u_char * \fBcommunity\fP"
.br
.RI "\fIcommunity for outgoing requests. \fP"
.ti -1c
.RI "size_t \fBcommunity_len\fP"
.br
.RI "\fIlength of community name. \fP"
.ti -1c
.RI "oid * \fBenterprise\fP"
.br
.RI "\fISystem OID. \fP"
.ti -1c
.RI "size_t \fBenterprise_length\fP"
.br
.ti -1c
.RI "long \fBtrap_type\fP"
.br
.RI "\fItrap type \fP"
.ti -1c
.RI "long \fBspecific_type\fP"
.br
.RI "\fIspecific type \fP"
.ti -1c
.RI "unsigned char \fBagent_addr\fP [4]"
.br
.RI "\fIThis is ONLY used for v1 TRAPs. \fP"
.ti -1c
.RI "u_char * \fBcontextEngineID\fP"
.br
.RI "\fIcontext snmpEngineID \fP"
.ti -1c
.RI "size_t \fBcontextEngineIDLen\fP"
.br
.RI "\fILength of contextEngineID. \fP"
.ti -1c
.RI "char * \fBcontextName\fP"
.br
.RI "\fIauthoritative contextName \fP"
.ti -1c
.RI "size_t \fBcontextNameLen\fP"
.br
.RI "\fILength of contextName. \fP"
.ti -1c
.RI "u_char * \fBsecurityEngineID\fP"
.br
.RI "\fIauthoritative snmpEngineID for security \fP"
.ti -1c
.RI "size_t \fBsecurityEngineIDLen\fP"
.br
.RI "\fILength of securityEngineID. \fP"
.ti -1c
.RI "char * \fBsecurityName\fP"
.br
.RI "\fIon behalf of this principal \fP"
.ti -1c
.RI "size_t \fBsecurityNameLen\fP"
.br
.RI "\fILength of securityName. \fP"
.ti -1c
.RI "int \fBpriority\fP"
.br
.ti -1c
.RI "int \fBrange_subid\fP"
.br
.ti -1c
.RI "void * \fBsecurityStateRef\fP"
.br
.in -1c
.SH "Detailed Description"
.PP
The snmp protocol data unit.
.PP
Definition at line 169 of file types.h.
.SH "Field Documentation"
.PP
.SS "unsigned char \fBsnmp_pdu::agent_addr\fP[4]"
.PP
This is ONLY used for v1 TRAPs.
.PP
Definition at line 239 of file types.h.
.SS "int \fBsnmp_pdu::command\fP"
.PP
Type of this PDU.
.PP
Definition at line 180 of file types.h.
.SS "u_char* \fBsnmp_pdu::community\fP"
.PP
community for outgoing requests.
.PP
Definition at line 224 of file types.h.
.SS "size_t \fBsnmp_pdu::community_len\fP"
.PP
length of community name.
.PP
Definition at line 226 of file types.h.
.SS "u_char* \fBsnmp_pdu::contextEngineID\fP"
.PP
context snmpEngineID
.PP
Definition at line 245 of file types.h.
.SS "size_t \fBsnmp_pdu::contextEngineIDLen\fP"
.PP
Length of contextEngineID.
.PP
Definition at line 247 of file types.h.
.SS "char* \fBsnmp_pdu::contextName\fP"
.PP
authoritative contextName
.PP
Definition at line 249 of file types.h.
.SS "size_t \fBsnmp_pdu::contextNameLen\fP"
.PP
Length of contextName.
.PP
Definition at line 251 of file types.h.
.SS "oid* \fBsnmp_pdu::enterprise\fP"
.PP
System OID.
.PP
Definition at line 232 of file types.h.
.SS "long \fBsnmp_pdu::errindex\fP"
.PP
Error index (max_repetitions in GetBulk).
.PP
Definition at line 192 of file types.h.
.SS "long \fBsnmp_pdu::errstat\fP"
.PP
Error status (non_repeaters in GetBulk).
.PP
Definition at line 190 of file types.h.
.SS "long \fBsnmp_pdu::msgid\fP"
.PP
Message id for V3 messages note: incremented for each retry.
.PP
Definition at line 184 of file types.h.
.SS "long \fBsnmp_pdu::reqid\fP"
.PP
Request id - note: not incremented on retries.
.PP
Definition at line 182 of file types.h.
.SS "u_char* \fBsnmp_pdu::securityEngineID\fP"
.PP
authoritative snmpEngineID for security
.PP
Definition at line 253 of file types.h.
.SS "size_t \fBsnmp_pdu::securityEngineIDLen\fP"
.PP
Length of securityEngineID.
.PP
Definition at line 255 of file types.h.
.SS "int \fBsnmp_pdu::securityLevel\fP"
.PP
noAuthNoPriv, authNoPriv, authPriv
.PP
Definition at line 199 of file types.h.
.SS "char* \fBsnmp_pdu::securityName\fP"
.PP
on behalf of this principal
.PP
Definition at line 257 of file types.h.
.SS "size_t \fBsnmp_pdu::securityNameLen\fP"
.PP
Length of securityName.
.PP
Definition at line 259 of file types.h.
.SS "long \fBsnmp_pdu::sessid\fP"
.PP
Session id for AgentX messages.
.PP
Definition at line 188 of file types.h.
.SS "long \fBsnmp_pdu::specific_type\fP"
.PP
specific type
.PP
Definition at line 237 of file types.h.
.SS "const oid* \fBsnmp_pdu::tDomain\fP"
.PP
The actual transport domain. This SHOULD NOT BE FREE()D.
.PP
Definition at line 214 of file types.h.
.SS "u_long \fBsnmp_pdu::time\fP"
.PP
Uptime.
.PP
Definition at line 194 of file types.h.
.SS "long \fBsnmp_pdu::transid\fP"
.PP
Unique ID for incoming transactions.
.PP
Definition at line 186 of file types.h.
.SS "void* \fBsnmp_pdu::transport_data\fP"
.PP
Transport-specific opaque data. This replaces the IP-centric address field.
.PP
Definition at line 207 of file types.h.
.SS "long \fBsnmp_pdu::trap_type\fP"
.PP
trap type
.PP
Definition at line 235 of file types.h.
.SS "long \fBsnmp_pdu::version\fP"
.PP
snmp version
.PP
Definition at line 178 of file types.h.
.SH "Author"
.PP
Generated automatically by Doxygen for net-snmp from the source code.