1 .TH "snmp_session" 3 "23 Sep 2009" "Version 5.5" "net-snmp" \" -*- nroff -*-
7 The snmp session structure.
13 \fC#include <types.h>\fP
18 .RI "long \fBversion\fP"
20 .RI "\fIsnmp version \fP"
22 .RI "int \fBretries\fP"
24 .RI "\fINumber of retries before timeout. \fP"
26 .RI "long \fBtimeout\fP"
28 .RI "\fINumber of uS until first timeout, then exponential backoff. \fP"
30 .RI "u_long \fBflags\fP"
33 .RI "struct \fBsnmp_session\fP * \fBsubsession\fP"
36 .RI "struct \fBsnmp_session\fP * \fBnext\fP"
39 .RI "char * \fBpeername\fP"
41 .RI "\fIname or address of default peer (may include transport specifier and/or port number) \fP"
43 .RI "u_short \fBremote_port\fP"
45 .RI "\fIUDP port number of peer. \fP"
47 .RI "char * \fBlocalname\fP"
49 .RI "\fIMy Domain name or dotted IP address, 0 for default. \fP"
51 .RI "u_short \fBlocal_port\fP"
53 .RI "\fIMy UDP port number, 0 for default, picked randomly. \fP"
55 .RI "u_char *(* \fBauthenticator\fP )(u_char *, size_t *, u_char *, size_t)"
57 .RI "\fIAuthentication function or NULL if null authentication is used. \fP"
59 .RI "netsnmp_callback \fBcallback\fP"
61 .RI "\fIFunction to interpret incoming data. \fP"
63 .RI "void * \fBcallback_magic\fP"
65 .RI "\fIPointer to data that the callback function may consider important. \fP"
67 .RI "int \fBs_errno\fP"
69 .RI "\fIcopy of system errno \fP"
71 .RI "int \fBs_snmp_errno\fP"
73 .RI "\fIcopy of library errno \fP"
75 .RI "long \fBsessid\fP"
77 .RI "\fISession id - AgentX only. \fP"
79 .RI "u_char * \fBcommunity\fP"
81 .RI "\fIcommunity for outgoing requests. \fP"
83 .RI "size_t \fBcommunity_len\fP"
85 .RI "\fILength of community name. \fP"
87 .RI "size_t \fBrcvMsgMaxSize\fP"
89 .RI "\fILargest message to try to receive. \fP"
91 .RI "size_t \fBsndMsgMaxSize\fP"
93 .RI "\fILargest message to try to send. \fP"
95 .RI "u_char \fBisAuthoritative\fP"
97 .RI "\fIare we the authoritative engine? \fP"
99 .RI "u_char * \fBcontextEngineID\fP"
101 .RI "\fIauthoritative snmpEngineID \fP"
103 .RI "size_t \fBcontextEngineIDLen\fP"
105 .RI "\fILength of contextEngineID. \fP"
107 .RI "u_int \fBengineBoots\fP"
109 .RI "\fIinitial engineBoots for remote engine \fP"
111 .RI "u_int \fBengineTime\fP"
113 .RI "\fIinitial engineTime for remote engine \fP"
115 .RI "char * \fBcontextName\fP"
117 .RI "\fIauthoritative contextName \fP"
119 .RI "size_t \fBcontextNameLen\fP"
121 .RI "\fILength of contextName. \fP"
123 .RI "u_char * \fBsecurityEngineID\fP"
125 .RI "\fIauthoritative snmpEngineID \fP"
127 .RI "size_t \fBsecurityEngineIDLen\fP"
129 .RI "\fILength of contextEngineID. \fP"
131 .RI "char * \fBsecurityName\fP"
133 .RI "\fIon behalf of this principal \fP"
135 .RI "size_t \fBsecurityNameLen\fP"
137 .RI "\fILength of securityName. \fP"
139 .RI "oid * \fBsecurityAuthProto\fP"
141 .RI "\fIauth protocol oid \fP"
143 .RI "size_t \fBsecurityAuthProtoLen\fP"
145 .RI "\fILength of auth protocol oid. \fP"
147 .RI "u_char \fBsecurityAuthKey\fP [USM_AUTH_KU_LEN]"
149 .RI "\fIKu for auth protocol XXX. \fP"
151 .RI "size_t \fBsecurityAuthKeyLen\fP"
153 .RI "\fILength of Ku for auth protocol. \fP"
155 .RI "u_char * \fBsecurityAuthLocalKey\fP"
157 .RI "\fIKul for auth protocol. \fP"
159 .RI "size_t \fBsecurityAuthLocalKeyLen\fP"
161 .RI "\fILength of Kul for auth protocol XXX. \fP"
163 .RI "oid * \fBsecurityPrivProto\fP"
165 .RI "\fIpriv protocol oid \fP"
167 .RI "size_t \fBsecurityPrivProtoLen\fP"
169 .RI "\fILength of priv protocol oid. \fP"
171 .RI "u_char \fBsecurityPrivKey\fP [USM_PRIV_KU_LEN]"
173 .RI "\fIKu for privacy protocol XXX. \fP"
175 .RI "size_t \fBsecurityPrivKeyLen\fP"
177 .RI "\fILength of Ku for priv protocol. \fP"
179 .RI "u_char * \fBsecurityPrivLocalKey\fP"
181 .RI "\fIKul for priv protocol. \fP"
183 .RI "size_t \fBsecurityPrivLocalKeyLen\fP"
185 .RI "\fILength of Kul for priv protocol XXX. \fP"
187 .RI "int \fBsecurityModel\fP"
189 .RI "\fIsnmp security model, v1, v2c, usm \fP"
191 .RI "int \fBsecurityLevel\fP"
193 .RI "\fInoAuthNoPriv, authNoPriv, authPriv \fP"
195 .RI "char * \fBparamName\fP"
197 .RI "\fItarget param name \fP"
199 .RI "void * \fBsecurityInfo\fP"
201 .RI "\fIsecurity \fBmodule\fP specific \fP"
203 .RI "void * \fBmyvoid\fP"
205 .RI "\fIuse as you want data \fP"
207 .SH "Detailed Description"
209 The snmp session structure.
211 Definition at line 260 of file types.h.
212 .SH "Field Documentation"
214 .SS "u_char*(* \fBsnmp_session::authenticator\fP)(u_char *, size_t *, u_char *, size_t)"
216 Authentication function or NULL if null authentication is used.
217 .SS "netsnmp_callback \fBsnmp_session::callback\fP"
219 Function to interpret incoming data.
221 Definition at line 287 of file types.h.
222 .SS "void* \fBsnmp_session::callback_magic\fP"
224 Pointer to data that the callback function may consider important.
226 Definition at line 291 of file types.h.
227 .SS "u_char* \fBsnmp_session::community\fP"
229 community for outgoing requests.
231 Definition at line 303 of file types.h.
232 .SS "size_t \fBsnmp_session::community_len\fP"
234 Length of community name.
236 Definition at line 305 of file types.h.
237 .SS "u_char* \fBsnmp_session::contextEngineID\fP"
239 authoritative snmpEngineID
241 Definition at line 317 of file types.h.
242 .SS "size_t \fBsnmp_session::contextEngineIDLen\fP"
244 Length of contextEngineID.
246 Definition at line 319 of file types.h.
247 .SS "char* \fBsnmp_session::contextName\fP"
249 authoritative contextName
251 Definition at line 325 of file types.h.
252 .SS "size_t \fBsnmp_session::contextNameLen\fP"
254 Length of contextName.
256 Definition at line 327 of file types.h.
257 .SS "u_int \fBsnmp_session::engineBoots\fP"
259 initial engineBoots for remote engine
261 Definition at line 321 of file types.h.
262 .SS "u_int \fBsnmp_session::engineTime\fP"
264 initial engineTime for remote engine
266 Definition at line 323 of file types.h.
267 .SS "u_char \fBsnmp_session::isAuthoritative\fP"
269 are we the authoritative engine?
271 Definition at line 315 of file types.h.
272 .SS "u_short \fBsnmp_session::local_port\fP"
274 My UDP port number, 0 for default, picked randomly.
276 Definition at line 281 of file types.h.
277 .SS "char* \fBsnmp_session::localname\fP"
279 My Domain name or dotted IP address, 0 for default.
281 Definition at line 279 of file types.h.
282 .SS "void* \fBsnmp_session::myvoid\fP"
284 use as you want data used by 'SNMP_FLAGS_RESP_CALLBACK' handling in the agent XXX: or should we add a new field into this structure?
286 Definition at line 381 of file types.h.
287 .SS "char* \fBsnmp_session::paramName\fP"
291 Definition at line 368 of file types.h.
292 .SS "char* \fBsnmp_session::peername\fP"
294 name or address of default peer (may include transport specifier and/or port number)
296 Definition at line 275 of file types.h.
297 .SS "size_t \fBsnmp_session::rcvMsgMaxSize\fP"
299 Largest message to try to receive.
301 Definition at line 307 of file types.h.
302 .SS "u_short \fBsnmp_session::remote_port\fP"
304 UDP port number of peer. (NO LONGER USED - USE peername INSTEAD)
306 Definition at line 277 of file types.h.
307 .SS "int \fBsnmp_session::retries\fP"
309 Number of retries before timeout.
311 Definition at line 267 of file types.h.
312 .SS "int \fBsnmp_session::s_errno\fP"
316 Definition at line 293 of file types.h.
317 .SS "int \fBsnmp_session::s_snmp_errno\fP"
319 copy of library errno
321 Definition at line 295 of file types.h.
322 .SS "u_char \fBsnmp_session::securityAuthKey\fP[USM_AUTH_KU_LEN]"
324 Ku for auth protocol XXX.
326 Definition at line 342 of file types.h.
327 .SS "size_t \fBsnmp_session::securityAuthKeyLen\fP"
329 Length of Ku for auth protocol.
331 Definition at line 344 of file types.h.
332 .SS "u_char* \fBsnmp_session::securityAuthLocalKey\fP"
334 Kul for auth protocol.
336 Definition at line 346 of file types.h.
337 .SS "size_t \fBsnmp_session::securityAuthLocalKeyLen\fP"
339 Length of Kul for auth protocol XXX.
341 Definition at line 348 of file types.h.
342 .SS "oid* \fBsnmp_session::securityAuthProto\fP"
346 Definition at line 338 of file types.h.
347 .SS "size_t \fBsnmp_session::securityAuthProtoLen\fP"
349 Length of auth protocol oid.
351 Definition at line 340 of file types.h.
352 .SS "u_char* \fBsnmp_session::securityEngineID\fP"
354 authoritative snmpEngineID
356 Definition at line 329 of file types.h.
357 .SS "size_t \fBsnmp_session::securityEngineIDLen\fP"
359 Length of contextEngineID.
361 Definition at line 331 of file types.h.
362 .SS "void* \fBsnmp_session::securityInfo\fP"
364 security \fBmodule\fP specific
366 Definition at line 373 of file types.h.
367 .SS "int \fBsnmp_session::securityLevel\fP"
369 noAuthNoPriv, authNoPriv, authPriv
371 Definition at line 366 of file types.h.
372 .SS "int \fBsnmp_session::securityModel\fP"
374 snmp security model, v1, v2c, usm
376 Definition at line 364 of file types.h.
377 .SS "char* \fBsnmp_session::securityName\fP"
379 on behalf of this principal
381 Definition at line 333 of file types.h.
382 .SS "size_t \fBsnmp_session::securityNameLen\fP"
384 Length of securityName.
386 Definition at line 335 of file types.h.
387 .SS "u_char \fBsnmp_session::securityPrivKey\fP[USM_PRIV_KU_LEN]"
389 Ku for privacy protocol XXX.
391 Definition at line 355 of file types.h.
392 .SS "size_t \fBsnmp_session::securityPrivKeyLen\fP"
394 Length of Ku for priv protocol.
396 Definition at line 357 of file types.h.
397 .SS "u_char* \fBsnmp_session::securityPrivLocalKey\fP"
399 Kul for priv protocol.
401 Definition at line 359 of file types.h.
402 .SS "size_t \fBsnmp_session::securityPrivLocalKeyLen\fP"
404 Length of Kul for priv protocol XXX.
406 Definition at line 361 of file types.h.
407 .SS "oid* \fBsnmp_session::securityPrivProto\fP"
411 Definition at line 351 of file types.h.
412 .SS "size_t \fBsnmp_session::securityPrivProtoLen\fP"
414 Length of priv protocol oid.
416 Definition at line 353 of file types.h.
417 .SS "long \fBsnmp_session::sessid\fP"
419 Session id - AgentX only.
421 Definition at line 297 of file types.h.
422 .SS "size_t \fBsnmp_session::sndMsgMaxSize\fP"
424 Largest message to try to send.
426 Definition at line 309 of file types.h.
427 .SS "long \fBsnmp_session::timeout\fP"
429 Number of uS until first timeout, then exponential backoff.
431 Definition at line 269 of file types.h.
432 .SS "long \fBsnmp_session::version\fP"
436 Definition at line 265 of file types.h.
440 Generated automatically by Doxygen for net-snmp from the source code.