net-snmp 5.7
Data Fields
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_listvariables
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 168 of file types.h.


Field Documentation

unsigned char snmp_pdu::agent_addr[4]

This is ONLY used for v1 TRAPs.

Definition at line 238 of file types.h.

Type of this PDU.

Definition at line 179 of file types.h.

community for outgoing requests.

Definition at line 223 of file types.h.

length of community name.

Definition at line 225 of file types.h.

context snmpEngineID

Definition at line 244 of file types.h.

Length of contextEngineID.

Definition at line 246 of file types.h.

authoritative contextName

Definition at line 248 of file types.h.

Length of contextName.

Definition at line 250 of file types.h.

System OID.

Definition at line 231 of file types.h.

Error index (max_repetitions in GetBulk)

Definition at line 191 of file types.h.

Error status (non_repeaters in GetBulk)

Definition at line 189 of file types.h.

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

Definition at line 183 of file types.h.

Request id - note: not incremented on retries.

Definition at line 181 of file types.h.

authoritative snmpEngineID for security

Definition at line 252 of file types.h.

Length of securityEngineID.

Definition at line 254 of file types.h.

noAuthNoPriv, authNoPriv, authPriv

Definition at line 198 of file types.h.

on behalf of this principal

Definition at line 256 of file types.h.

Length of securityName.

Definition at line 258 of file types.h.

Session id for AgentX messages.

Definition at line 187 of file types.h.

specific type

Definition at line 236 of file types.h.

const oid* snmp_pdu::tDomain

The actual transport domain.

This SHOULD NOT BE FREE()D.

Definition at line 213 of file types.h.

Uptime.

Definition at line 193 of file types.h.

Unique ID for incoming transactions.

Definition at line 185 of file types.h.

Transport-specific opaque data.

This replaces the IP-centric address field.

Definition at line 206 of file types.h.

trap type

Definition at line 234 of file types.h.

snmp version

Definition at line 177 of file types.h.


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