snmp_pdu(3)

NAME
snmp_pdu -

The snmp protocol data unit.

SYNOPSIS

#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.

  int snmp_pdu::command

Type of this PDU.

Definition at line 153 of file types.h.

  u_char* snmp_pdu::community

community for outgoing requests.

Definition at line 197 of file types.h.

  size_t snmp_pdu::community_len

length of community name.

Definition at line 199 of file types.h.

  u_char* snmp_pdu::contextEngineID

context snmpEngineID

Definition at line 218 of file types.h.

  size_t snmp_pdu::contextEngineIDLen

Length of contextEngineID.

Definition at line 220 of file types.h.

  char* snmp_pdu::contextName

authoritative contextName

Definition at line 222 of file types.h.

  size_t snmp_pdu::contextNameLen

Length of contextName.

Definition at line 224 of file types.h.

  oid* snmp_pdu::enterprise

System OID.

Definition at line 205 of file types.h.

  long snmp_pdu::errindex

Error index (max_repetitions in GetBulk).

Definition at line 165 of file types.h.

  long snmp_pdu::errstat

Error status (non_repeaters in GetBulk).

Definition at line 163 of file types.h.

  long snmp_pdu::msgid

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

Definition at line 157 of file types.h.

  long snmp_pdu::reqid

Request id - note: not incremented on retries.

Definition at line 155 of file types.h.

  u_char* snmp_pdu::securityEngineID

authoritative snmpEngineID for security

Definition at line 226 of file types.h.

  size_t snmp_pdu::securityEngineIDLen

Length of securityEngineID.

Definition at line 228 of file types.h.

  int snmp_pdu::securityLevel

noAuthNoPriv, authNoPriv, authPriv

Definition at line 172 of file types.h.

  char* snmp_pdu::securityName

on behalf of this principal

Definition at line 230 of file types.h.

  size_t snmp_pdu::securityNameLen

Length of securityName.

Definition at line 232 of file types.h.

  long snmp_pdu::sessid

Session id for AgentX messages.

Definition at line 161 of file types.h.

  long snmp_pdu::specific_type

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.

  u_long snmp_pdu::time

Uptime.

Definition at line 167 of file types.h.

  long snmp_pdu::transid

Unique ID for incoming transactions.

Definition at line 159 of file types.h.

  void* snmp_pdu::transport_data

Transport-specific opaque data. This replaces the IP-centric address field.

Definition at line 180 of file types.h.

  long snmp_pdu::trap_type

trap type

Definition at line 208 of file types.h.

  long snmp_pdu::version

snmp version

Definition at line 151 of file types.h.

Author

Generated automatically by Doxygen for net-snmp from the source code.