summaryrefslogtreecommitdiff
path: root/man/netsnmp_snmp_pdu.3
blob: cd33efd25579e853b2b5b14e674433bae44495c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
.TH "snmp_pdu" 3 "23 May 2010" "Version 5.4.3.pre1" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
snmp_pdu \- 
.PP
The snmp protocol data unit.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <snmp_api.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 75 of file snmp_api.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 142 of file snmp_api.h.
.SS "int \fBsnmp_pdu::command\fP"
.PP
Type of this PDU. 
.PP
Definition at line 83 of file snmp_api.h.
.SS "u_char* \fBsnmp_pdu::community\fP"
.PP
community for outgoing requests. 
.PP
Definition at line 127 of file snmp_api.h.
.SS "size_t \fBsnmp_pdu::community_len\fP"
.PP
length of community name. 
.PP
Definition at line 129 of file snmp_api.h.
.SS "u_char* \fBsnmp_pdu::contextEngineID\fP"
.PP
context snmpEngineID 
.PP
Definition at line 148 of file snmp_api.h.
.SS "size_t \fBsnmp_pdu::contextEngineIDLen\fP"
.PP
Length of contextEngineID. 
.PP
Definition at line 150 of file snmp_api.h.
.SS "char* \fBsnmp_pdu::contextName\fP"
.PP
authoritative contextName 
.PP
Definition at line 152 of file snmp_api.h.
.SS "size_t \fBsnmp_pdu::contextNameLen\fP"
.PP
Length of contextName. 
.PP
Definition at line 154 of file snmp_api.h.
.SS "oid* \fBsnmp_pdu::enterprise\fP"
.PP
System OID. 
.PP
Definition at line 135 of file snmp_api.h.
.SS "long \fBsnmp_pdu::errindex\fP"
.PP
Error index (max_repetitions in GetBulk). 
.PP
Definition at line 95 of file snmp_api.h.
.SS "long \fBsnmp_pdu::errstat\fP"
.PP
Error status (non_repeaters in GetBulk). 
.PP
Definition at line 93 of file snmp_api.h.
.SS "long \fBsnmp_pdu::msgid\fP"
.PP
Message id for V3 messages note: incremented for each retry. 
.PP
Definition at line 87 of file snmp_api.h.
.SS "long \fBsnmp_pdu::reqid\fP"
.PP
Request id - note: not incremented on retries. 
.PP
Definition at line 85 of file snmp_api.h.
.SS "u_char* \fBsnmp_pdu::securityEngineID\fP"
.PP
authoritative snmpEngineID for security 
.PP
Definition at line 156 of file snmp_api.h.
.SS "size_t \fBsnmp_pdu::securityEngineIDLen\fP"
.PP
Length of securityEngineID. 
.PP
Definition at line 158 of file snmp_api.h.
.SS "int \fBsnmp_pdu::securityLevel\fP"
.PP
noAuthNoPriv, authNoPriv, authPriv 
.PP
Definition at line 102 of file snmp_api.h.
.SS "char* \fBsnmp_pdu::securityName\fP"
.PP
on behalf of this principal 
.PP
Definition at line 160 of file snmp_api.h.
.SS "size_t \fBsnmp_pdu::securityNameLen\fP"
.PP
Length of securityName. 
.PP
Definition at line 162 of file snmp_api.h.
.SS "long \fBsnmp_pdu::sessid\fP"
.PP
Session id for AgentX messages. 
.PP
Definition at line 91 of file snmp_api.h.
.SS "long \fBsnmp_pdu::specific_type\fP"
.PP
specific type 
.PP
Definition at line 140 of file snmp_api.h.
.SS "const oid* \fBsnmp_pdu::tDomain\fP"
.PP
The actual transport domain. This SHOULD NOT BE FREE()D. 
.PP
Definition at line 117 of file snmp_api.h.
.SS "u_long \fBsnmp_pdu::time\fP"
.PP
Uptime. 
.PP
Definition at line 97 of file snmp_api.h.
.SS "long \fBsnmp_pdu::transid\fP"
.PP
Unique ID for incoming transactions. 
.PP
Definition at line 89 of file snmp_api.h.
.SS "void* \fBsnmp_pdu::transport_data\fP"
.PP
Transport-specific opaque data. This replaces the IP-centric address field. 
.PP
Definition at line 110 of file snmp_api.h.
.SS "long \fBsnmp_pdu::trap_type\fP"
.PP
trap type 
.PP
Definition at line 138 of file snmp_api.h.
.SS "long \fBsnmp_pdu::version\fP"
.PP
snmp version 
.PP
Definition at line 81 of file snmp_api.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for net-snmp from the source code.