Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google

snmp_pdu Struct Reference

The snmp protocol data unit. More...

#include <types.h>

Data Fields

long  version
  snmp version
int  command
  Type of this PDU.
long  reqid
  Request id - note: not incremented on retries.
long  msgid
  Message id for V3 messages note: incremented for each retry.
long  transid
  Unique ID for incoming transactions.
long  sessid
  Session id for AgentX messages.
long  errstat
  Error status (non_repeaters in GetBulk).
long  errindex
  Error index (max_repetitions in GetBulk).
u_long  time
  Uptime.
u_long  flags
int  securityModel
int  securityLevel
  noAuthNoPriv, authNoPriv, authPriv
int  msgParseModel
void *  transport_data
  Transport-specific opaque data.
int  transport_data_length
const oid *  tDomain
  The actual transport domain.
size_t  tDomainLen
netsnmp_variable_list variables
u_char *  community
  community for outgoing requests.
size_t  community_len
  length of community name.
oid *  enterprise
  System OID.
size_t  enterprise_length
long  trap_type
  trap type
long  specific_type
  specific type
unsigned char  agent_addr [4]
  This is ONLY used for v1 TRAPs.
u_char *  contextEngineID
  context snmpEngineID
size_t  contextEngineIDLen
  Length of contextEngineID.
char *  contextName
  authoritative contextName
size_t  contextNameLen
  Length of contextName.
u_char *  securityEngineID
  authoritative snmpEngineID for security
size_t  securityEngineIDLen
  Length of securityEngineID.
char *  securityName
  on behalf of this principal
size_t  securityNameLen
  Length of securityName.
int  priority
int  range_subid
void *  securityStateRef

Detailed Description

The snmp protocol data unit.

Definition at line 142 of file types.h.


Field Documentation

unsigned char snmp_pdu::agent_addr[4]

This is ONLY used for v1 TRAPs.

Definition at line 212 of file types.h.

Type of this PDU.

Definition at line 153 of file types.h.

community for outgoing requests.

Definition at line 197 of file types.h.

length of community name.

Definition at line 199 of file types.h.

context snmpEngineID

Definition at line 218 of file types.h.

Length of contextEngineID.

Definition at line 220 of file types.h.

authoritative contextName

Definition at line 222 of file types.h.

Length of contextName.

Definition at line 224 of file types.h.

System OID.

Definition at line 205 of file types.h.

Error index (max_repetitions in GetBulk).

Definition at line 165 of file types.h.

Error status (non_repeaters in GetBulk).

Definition at line 163 of file types.h.

Message id for V3 messages note: incremented for each retry.

Definition at line 157 of file types.h.

Request id - note: not incremented on retries.

Definition at line 155 of file types.h.

authoritative snmpEngineID for security

Definition at line 226 of file types.h.

Length of securityEngineID.

Definition at line 228 of file types.h.

noAuthNoPriv, authNoPriv, authPriv

Definition at line 172 of file types.h.

on behalf of this principal

Definition at line 230 of file types.h.

Length of securityName.

Definition at line 232 of file types.h.

Session id for AgentX messages.

Definition at line 161 of file types.h.

specific type

Definition at line 210 of file types.h.

const oid* snmp_pdu::tDomain

The actual transport domain.

This SHOULD NOT BE FREE()D.

Definition at line 187 of file types.h.

Uptime.

Definition at line 167 of file types.h.

Unique ID for incoming transactions.

Definition at line 159 of file types.h.

Transport-specific opaque data.

This replaces the IP-centric address field.

Definition at line 180 of file types.h.

trap type

Definition at line 208 of file types.h.

snmp version

Definition at line 151 of file types.h.


The documentation for this struct was generated from the following file:

Generated on 28 Sep 2009 for net-snmp by  doxygen 1.6.1

Last modified: Monday, 28-Sep-2009 20:19:10 UTC
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.