210
211
Definition at line 187 of file snmp_api.h.
211
212
.SH "Field Documentation"
213
.SS "long \fBsnmp_session::version\fP"
217
Definition at line 192 of file snmp_api.h.
219
Referenced by add_trap_session(), create_user_from_session(), netsnmp_register_agent_nsap(), send_trap_to_sess(), snmp_sess_add_ex(), snmp_sess_init(), snmpd_parse_config_trapsess(), and snmpv3_engineID_probe().
220
.SS "int \fBsnmp_session::retries\fP"
222
Number of retries before timeout.
224
Definition at line 194 of file snmp_api.h.
226
Referenced by snmp_sess_init(), and snmp_sess_timeout().
227
.SS "long \fBsnmp_session::timeout\fP"
229
Number of uS until first timeout, then exponential backoff.
231
Definition at line 196 of file snmp_api.h.
233
Referenced by snmp_sess_init().
234
.SS "char* \fBsnmp_session::peername\fP"
236
name or address of default peer (may include transport specifier and/or port number)
238
Definition at line 202 of file snmp_api.h.
240
Referenced by snmpd_parse_config_trapsess().
241
.SS "u_short \fBsnmp_session::remote_port\fP"
243
UDP port number of peer.
245
(NO LONGER USED - USE peername INSTEAD)
247
Definition at line 204 of file snmp_api.h.
249
Referenced by snmp_sess_init().
250
.SS "char* \fBsnmp_session::localname\fP"
252
My Domain name or dotted IP address, 0 for default.
254
Definition at line 206 of file snmp_api.h.
255
.SS "u_short \fBsnmp_session::local_port\fP"
257
My UDP port number, 0 for default, picked randomly.
259
Definition at line 208 of file snmp_api.h.
260
214
.SS "u_char*(* \fBsnmp_session::authenticator\fP)(u_char *, size_t *, u_char *, size_t)"
262
216
Authentication function or NULL if null authentication is used.
264
Referenced by netsnmp_register_agent_nsap().
265
217
.SS "netsnmp_callback \fBsnmp_session::callback\fP"
267
219
Function to interpret incoming data.
269
221
Definition at line 214 of file snmp_api.h.
271
Referenced by _sess_read(), netsnmp_register_agent_nsap(), snmp_sess_synch_response(), snmp_sess_timeout(), and snmp_synch_response_cb().
272
222
.SS "void* \fBsnmp_session::callback_magic\fP"
274
224
Pointer to data that the callback function may consider important.
276
226
Definition at line 218 of file snmp_api.h.
278
Referenced by _sess_read(), snmp_sess_synch_response(), snmp_sess_timeout(), and snmp_synch_response_cb().
279
.SS "int \fBsnmp_session::s_errno\fP"
283
Definition at line 220 of file snmp_api.h.
285
Referenced by _sess_read(), and snmp_error().
286
.SS "int \fBsnmp_session::s_snmp_errno\fP"
288
copy of library errno
290
Definition at line 222 of file snmp_api.h.
292
Referenced by _sess_read(), handle_snmp_packet(), snmp_build(), snmp_error(), snmp_sess_add_ex(), snmp_sess_async_send(), snmp_sess_open(), snmp_sess_read(), and snmpv3_engineID_probe().
293
.SS "long \fBsnmp_session::sessid\fP"
295
Session id - AgentX only.
297
Definition at line 224 of file snmp_api.h.
299
Referenced by send_trap_to_sess().
300
227
.SS "u_char* \fBsnmp_session::community\fP"
302
229
community for outgoing requests.
338
244
Length of contextEngineID.
340
246
Definition at line 246 of file snmp_api.h.
247
.SS "char* \fBsnmp_session::contextName\fP"
249
authoritative contextName
251
Definition at line 252 of file snmp_api.h.
252
.SS "size_t \fBsnmp_session::contextNameLen\fP"
254
Length of contextName.
256
Definition at line 254 of file snmp_api.h.
341
257
.SS "u_int \fBsnmp_session::engineBoots\fP"
343
259
initial engineBoots for remote engine
345
261
Definition at line 248 of file snmp_api.h.
347
Referenced by snmpv3_engineID_probe().
348
262
.SS "u_int \fBsnmp_session::engineTime\fP"
350
264
initial engineTime for remote engine
352
266
Definition at line 250 of file snmp_api.h.
354
Referenced by snmpv3_engineID_probe().
355
.SS "char* \fBsnmp_session::contextName\fP"
357
authoritative contextName
359
Definition at line 252 of file snmp_api.h.
361
Referenced by unregister_mibs_by_session().
362
.SS "size_t \fBsnmp_session::contextNameLen\fP"
364
Length of contextName.
366
Definition at line 254 of file snmp_api.h.
367
.SS "u_char* \fBsnmp_session::securityEngineID\fP"
369
authoritative snmpEngineID
371
Definition at line 256 of file snmp_api.h.
373
Referenced by create_user_from_session(), snmpd_parse_config_trapsess(), and snmpv3_engineID_probe().
374
.SS "size_t \fBsnmp_session::securityEngineIDLen\fP"
376
Length of contextEngineID.
378
Definition at line 258 of file snmp_api.h.
380
Referenced by create_user_from_session(), snmpd_parse_config_trapsess(), and snmpv3_engineID_probe().
381
.SS "char* \fBsnmp_session::securityName\fP"
383
on behalf of this principal
385
Definition at line 260 of file snmp_api.h.
387
Referenced by create_user_from_session().
388
.SS "size_t \fBsnmp_session::securityNameLen\fP"
390
Length of securityName.
392
Definition at line 262 of file snmp_api.h.
394
Referenced by create_user_from_session().
395
.SS "oid* \fBsnmp_session::securityAuthProto\fP"
399
Definition at line 265 of file snmp_api.h.
401
Referenced by create_user_from_session().
402
.SS "size_t \fBsnmp_session::securityAuthProtoLen\fP"
404
Length of auth protocol oid.
406
Definition at line 267 of file snmp_api.h.
408
Referenced by create_user_from_session().
267
.SS "u_char \fBsnmp_session::isAuthoritative\fP"
269
are we the authoritative engine?
271
Definition at line 242 of file snmp_api.h.
272
.SS "u_short \fBsnmp_session::local_port\fP"
274
My UDP port number, 0 for default, picked randomly.
276
Definition at line 208 of file snmp_api.h.
277
.SS "char* \fBsnmp_session::localname\fP"
279
My Domain name or dotted IP address, 0 for default.
281
Definition at line 206 of file snmp_api.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 308 of file snmp_api.h.
287
.SS "char* \fBsnmp_session::paramName\fP"
291
Definition at line 295 of file snmp_api.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 202 of file snmp_api.h.
297
.SS "size_t \fBsnmp_session::rcvMsgMaxSize\fP"
299
Largest message to try to receive.
301
Definition at line 234 of file snmp_api.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 204 of file snmp_api.h.
307
.SS "int \fBsnmp_session::retries\fP"
309
Number of retries before timeout.
311
Definition at line 194 of file snmp_api.h.
312
.SS "int \fBsnmp_session::s_errno\fP"
316
Definition at line 220 of file snmp_api.h.
317
.SS "int \fBsnmp_session::s_snmp_errno\fP"
319
copy of library errno
321
Definition at line 222 of file snmp_api.h.
409
322
.SS "u_char \fBsnmp_session::securityAuthKey\fP[USM_AUTH_KU_LEN]"
411
324
Ku for auth protocol XXX.
413
326
Definition at line 269 of file snmp_api.h.
415
Referenced by create_user_from_session().
416
327
.SS "size_t \fBsnmp_session::securityAuthKeyLen\fP"
418
329
Length of Ku for auth protocol.
420
331
Definition at line 271 of file snmp_api.h.
422
Referenced by create_user_from_session().
423
332
.SS "u_char* \fBsnmp_session::securityAuthLocalKey\fP"
425
334
Kul for auth protocol.
427
336
Definition at line 273 of file snmp_api.h.
429
Referenced by create_user_from_session().
430
337
.SS "size_t \fBsnmp_session::securityAuthLocalKeyLen\fP"
432
339
Length of Kul for auth protocol XXX.
434
341
Definition at line 275 of file snmp_api.h.
436
Referenced by create_user_from_session().
437
.SS "oid* \fBsnmp_session::securityPrivProto\fP"
441
Definition at line 278 of file snmp_api.h.
443
Referenced by create_user_from_session().
444
.SS "size_t \fBsnmp_session::securityPrivProtoLen\fP"
446
Length of priv protocol oid.
448
Definition at line 280 of file snmp_api.h.
450
Referenced by create_user_from_session().
342
.SS "oid* \fBsnmp_session::securityAuthProto\fP"
346
Definition at line 265 of file snmp_api.h.
347
.SS "size_t \fBsnmp_session::securityAuthProtoLen\fP"
349
Length of auth protocol oid.
351
Definition at line 267 of file snmp_api.h.
352
.SS "u_char* \fBsnmp_session::securityEngineID\fP"
354
authoritative snmpEngineID
356
Definition at line 256 of file snmp_api.h.
357
.SS "size_t \fBsnmp_session::securityEngineIDLen\fP"
359
Length of contextEngineID.
361
Definition at line 258 of file snmp_api.h.
362
.SS "void* \fBsnmp_session::securityInfo\fP"
364
security \fBmodule\fP specific
366
Definition at line 300 of file snmp_api.h.
367
.SS "int \fBsnmp_session::securityLevel\fP"
369
noAuthNoPriv, authNoPriv, authPriv
371
Definition at line 293 of file snmp_api.h.
372
.SS "int \fBsnmp_session::securityModel\fP"
374
snmp security model, v1, v2c, usm
376
Definition at line 291 of file snmp_api.h.
377
.SS "char* \fBsnmp_session::securityName\fP"
379
on behalf of this principal
381
Definition at line 260 of file snmp_api.h.
382
.SS "size_t \fBsnmp_session::securityNameLen\fP"
384
Length of securityName.
386
Definition at line 262 of file snmp_api.h.
451
387
.SS "u_char \fBsnmp_session::securityPrivKey\fP[USM_PRIV_KU_LEN]"
453
389
Ku for privacy protocol XXX.
455
391
Definition at line 282 of file snmp_api.h.
457
Referenced by create_user_from_session().
458
392
.SS "size_t \fBsnmp_session::securityPrivKeyLen\fP"
460
394
Length of Ku for priv protocol.
462
396
Definition at line 284 of file snmp_api.h.
464
Referenced by create_user_from_session().
465
397
.SS "u_char* \fBsnmp_session::securityPrivLocalKey\fP"
467
399
Kul for priv protocol.
469
401
Definition at line 286 of file snmp_api.h.
471
Referenced by create_user_from_session().
472
402
.SS "size_t \fBsnmp_session::securityPrivLocalKeyLen\fP"
474
404
Length of Kul for priv protocol XXX.
476
406
Definition at line 288 of file snmp_api.h.
478
Referenced by create_user_from_session().
479
.SS "int \fBsnmp_session::securityModel\fP"
481
snmp security model, v1, v2c, usm
483
Definition at line 291 of file snmp_api.h.
485
Referenced by create_user_from_session(), snmp_sess_close(), and snmp_sess_init().
486
.SS "int \fBsnmp_session::securityLevel\fP"
488
noAuthNoPriv, authNoPriv, authPriv
490
Definition at line 293 of file snmp_api.h.
491
.SS "char* \fBsnmp_session::paramName\fP"
495
Definition at line 295 of file snmp_api.h.
496
.SS "void* \fBsnmp_session::securityInfo\fP"
498
security module specific
500
Definition at line 300 of file snmp_api.h.
501
.SS "void* \fBsnmp_session::myvoid\fP"
505
used by 'SNMP_FLAGS_RESP_CALLBACK' handling in the agent XXX: or should we add a new field into this structure?
507
Definition at line 308 of file snmp_api.h.
509
Referenced by snmp_synch_response_cb().
407
.SS "oid* \fBsnmp_session::securityPrivProto\fP"
411
Definition at line 278 of file snmp_api.h.
412
.SS "size_t \fBsnmp_session::securityPrivProtoLen\fP"
414
Length of priv protocol oid.
416
Definition at line 280 of file snmp_api.h.
417
.SS "long \fBsnmp_session::sessid\fP"
419
Session id - AgentX only.
421
Definition at line 224 of file snmp_api.h.
422
.SS "size_t \fBsnmp_session::sndMsgMaxSize\fP"
424
Largest message to try to send.
426
Definition at line 236 of file snmp_api.h.
427
.SS "long \fBsnmp_session::timeout\fP"
429
Number of uS until first timeout, then exponential backoff.
431
Definition at line 196 of file snmp_api.h.
432
.SS "long \fBsnmp_session::version\fP"
436
Definition at line 192 of file snmp_api.h.