Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

smi.h File Reference

#include "snmp_pp/config_snmp_pp.h"

Go to the source code of this file.

Compounds

struct  SmiCNTR64
struct  SmiOCTETS
struct  SmiOID

ASN/BER Base Types

Basic Encoding Rules (BER) (used in forming SYNTAXes and certain SNMP types/values).

#define aSN_UNIVERSAL   (0x00)
#define aSN_APPLICATION   (0x40)
#define aSN_CONTEXT   (0x80)
#define aSN_PRIVATE   (0xC0)
#define aSN_PRIMITIVE   (0x00)
#define aSN_CONSTRUCTOR   (0x20)

Syntax Types

These values are used in the "syntax" member of the smiVALUE structure which follows.

The get_syntax() method of any class derived from SnmpSyntax returns one of these values.

Note:
UInt32 is indistinguishable from Gauge32 per SNMPv2 Draft Standard

NsapAddr is obsoleted as unique SMI type per SNMPv2 Draft Standard



#define sNMP_SYNTAX_INT   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x02)
#define sNMP_SYNTAX_BITS   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x03)
#define sNMP_SYNTAX_OCTETS   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x04)
#define sNMP_SYNTAX_NULL   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x05)
#define sNMP_SYNTAX_OID   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x06)
#define sNMP_SYNTAX_INT32   sNMP_SYNTAX_INT
#define sNMP_SYNTAX_IPADDR   (aSN_APPLICATION | aSN_PRIMITIVE | 0x00)
#define sNMP_SYNTAX_CNTR32   (aSN_APPLICATION | aSN_PRIMITIVE | 0x01)
#define sNMP_SYNTAX_GAUGE32   (aSN_APPLICATION | aSN_PRIMITIVE | 0x02)
#define sNMP_SYNTAX_TIMETICKS   (aSN_APPLICATION | aSN_PRIMITIVE | 0x03)
#define sNMP_SYNTAX_OPAQUE   (aSN_APPLICATION | aSN_PRIMITIVE | 0x04)
#define sNMP_SYNTAX_CNTR64   (aSN_APPLICATION | aSN_PRIMITIVE | 0x06)
#define sNMP_SYNTAX_UINT32   sNMP_SYNTAX_GAUGE32

Exception conditions for SNMPv2

#define sNMP_SYNTAX_NOSUCHOBJECT   (aSN_CONTEXT | aSN_PRIMITIVE | 0x00)
#define sNMP_SYNTAX_NOSUCHINSTANCE   (aSN_CONTEXT | aSN_PRIMITIVE | 0x01)
#define sNMP_SYNTAX_ENDOFMIBVIEW   (aSN_CONTEXT | aSN_PRIMITIVE | 0x02)

Pdu types

#define sNMP_PDU_GET   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x0)
#define sNMP_PDU_GETNEXT   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x1)
#define sNMP_PDU_RESPONSE   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x2)
#define sNMP_PDU_SET   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x3)
#define sNMP_PDU_V1TRAP   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x4)
#define sNMP_PDU_GETBULK   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x5)
#define sNMP_PDU_INFORM   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x6)
#define sNMP_PDU_TRAP   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x7)
#define sNMP_PDU_REPORT   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x8)

SMI typedefs

SNMP-related types from RFC1442 (SMI).

typedef unsigned char SmiBYTE
typedef unsigned char WINFAR * SmiLPBYTE
typedef long SmiINT
typedef long WINFAR * SmiLPINT
typedef SmiINT SmiINT32
typedef SmiINT WINFAR * SmiLPINT32
typedef unsigned long SmiUINT32
typedef unsigned long WINFAR * SmiLPUINT32
typedef * SmiLPOCTETS
typedef SmiOCTETS SmiBITS
typedef SmiOCTETS WINFAR * SmiLPBITS
typedef * SmiLPOID
typedef SmiOCTETS SmiIPADDR
typedef SmiOCTETS WINFAR * SmiLPIPADDR
typedef SmiUINT32 SmiCNTR32
typedef SmiUINT32 WINFAR * SmiLPCNTR32
typedef SmiUINT32 SmiGAUGE32
typedef SmiUINT32 WINFAR * SmiLPGAUGE32
typedef SmiUINT32 SmiTIMETICKS
typedef SmiUINT32 WINFAR * SmiLPTIMETICKS
typedef SmiOCTETS SmiOPAQUE
typedef SmiOCTETS WINFAR * SmiLPOPAQUE
typedef SmiOCTETS SmiNSAPADDR
typedef SmiOCTETS WINFAR * SmiLPNSAPADDR
typedef * SmiLPCNTR64

Defines

#define WINFAR
#define STRCAT   strcat
#define STRLEN   strlen
#define MEMCPY   memcpy
#define STRCPY   strcpy
#define MEMCMP   memcmp
#define XPORT
#define TRUE   1
#define FALSE   0
#define sNMP_SYNTAX_SEQUENCE   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x10)


Define Documentation

#define aSN_APPLICATION   (0x40)
 

Definition at line 119 of file smi.h.

#define aSN_CONSTRUCTOR   (0x20)
 

Definition at line 123 of file smi.h.

#define aSN_CONTEXT   (0x80)
 

Definition at line 120 of file smi.h.

#define aSN_PRIMITIVE   (0x00)
 

Definition at line 122 of file smi.h.

#define aSN_PRIVATE   (0xC0)
 

Definition at line 121 of file smi.h.

#define aSN_UNIVERSAL   (0x00)
 

Definition at line 118 of file smi.h.

#define FALSE   0
 

Definition at line 108 of file smi.h.

#define MEMCMP   memcmp
 

Definition at line 82 of file smi.h.

#define MEMCPY   memcpy
 

Definition at line 80 of file smi.h.

#define sNMP_PDU_GET   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x0)
 

Definition at line 169 of file smi.h.

#define sNMP_PDU_GETBULK   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x5)
 

Definition at line 174 of file smi.h.

#define sNMP_PDU_GETNEXT   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x1)
 

Definition at line 170 of file smi.h.

#define sNMP_PDU_INFORM   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x6)
 

Definition at line 175 of file smi.h.

#define sNMP_PDU_REPORT   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x8)
 

Definition at line 177 of file smi.h.

#define sNMP_PDU_RESPONSE   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x2)
 

Definition at line 171 of file smi.h.

#define sNMP_PDU_SET   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x3)
 

Definition at line 172 of file smi.h.

#define sNMP_PDU_TRAP   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x7)
 

Definition at line 176 of file smi.h.

#define sNMP_PDU_V1TRAP   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x4)
 

Definition at line 173 of file smi.h.

#define sNMP_SYNTAX_BITS   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x03)
 

Definition at line 142 of file smi.h.

#define sNMP_SYNTAX_CNTR32   (aSN_APPLICATION | aSN_PRIMITIVE | 0x01)
 

Definition at line 148 of file smi.h.

Referenced by Counter32::Counter32(), and Counter32::get_syntax().

#define sNMP_SYNTAX_CNTR64   (aSN_APPLICATION | aSN_PRIMITIVE | 0x06)
 

Definition at line 152 of file smi.h.

Referenced by Counter64::get_syntax().

#define sNMP_SYNTAX_ENDOFMIBVIEW   (aSN_CONTEXT | aSN_PRIMITIVE | 0x02)
 

Definition at line 163 of file smi.h.

#define sNMP_SYNTAX_GAUGE32   (aSN_APPLICATION | aSN_PRIMITIVE | 0x02)
 

Definition at line 149 of file smi.h.

Referenced by Gauge32::Gauge32(), and Gauge32::get_syntax().

#define sNMP_SYNTAX_INT   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x02)
 

Definition at line 141 of file smi.h.

#define sNMP_SYNTAX_INT32   sNMP_SYNTAX_INT
 

Definition at line 146 of file smi.h.

Referenced by SnmpInt32::get_syntax().

#define sNMP_SYNTAX_IPADDR   (aSN_APPLICATION | aSN_PRIMITIVE | 0x00)
 

Definition at line 147 of file smi.h.

Referenced by IpAddress::get_syntax().

#define sNMP_SYNTAX_NOSUCHINSTANCE   (aSN_CONTEXT | aSN_PRIMITIVE | 0x01)
 

Definition at line 162 of file smi.h.

#define sNMP_SYNTAX_NOSUCHOBJECT   (aSN_CONTEXT | aSN_PRIMITIVE | 0x00)
 

Definition at line 161 of file smi.h.

#define sNMP_SYNTAX_NULL   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x05)
 

Definition at line 144 of file smi.h.

Referenced by GenAddress::get_syntax().

#define sNMP_SYNTAX_OCTETS   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x04)
 

Definition at line 143 of file smi.h.

Referenced by OctetStr::get_syntax(), and UdpAddress::get_syntax().

#define sNMP_SYNTAX_OID   (aSN_UNIVERSAL | aSN_PRIMITIVE | 0x06)
 

Definition at line 145 of file smi.h.

Referenced by Oid::get_syntax().

#define sNMP_SYNTAX_OPAQUE   (aSN_APPLICATION | aSN_PRIMITIVE | 0x04)
 

Definition at line 151 of file smi.h.

Referenced by OpaqueStr::get_syntax(), and OpaqueStr::OpaqueStr().

#define sNMP_SYNTAX_SEQUENCE   (aSN_CONTEXT | aSN_CONSTRUCTOR | 0x10)
 

Definition at line 127 of file smi.h.

#define sNMP_SYNTAX_TIMETICKS   (aSN_APPLICATION | aSN_PRIMITIVE | 0x03)
 

Definition at line 150 of file smi.h.

Referenced by TimeTicks::get_syntax(), and TimeTicks::TimeTicks().

#define sNMP_SYNTAX_UINT32   sNMP_SYNTAX_GAUGE32
 

Definition at line 153 of file smi.h.

Referenced by SnmpUInt32::get_syntax().

#define STRCAT   strcat
 

Definition at line 78 of file smi.h.

#define STRCPY   strcpy
 

Definition at line 81 of file smi.h.

#define STRLEN   strlen
 

Definition at line 79 of file smi.h.

#define TRUE   1
 

Definition at line 104 of file smi.h.

#define WINFAR
 

Definition at line 77 of file smi.h.

#define XPORT
 

Definition at line 83 of file smi.h.


Typedef Documentation

typedef SmiOCTETS SmiBITS
 

Definition at line 206 of file smi.h.

typedef unsigned char SmiBYTE
 

Definition at line 189 of file smi.h.

typedef SmiUINT32 SmiCNTR32
 

Definition at line 217 of file smi.h.

typedef SmiUINT32 SmiGAUGE32
 

Definition at line 220 of file smi.h.

typedef long SmiINT
 

Definition at line 192 of file smi.h.

typedef SmiINT SmiINT32
 

Definition at line 195 of file smi.h.

typedef SmiOCTETS SmiIPADDR
 

Definition at line 214 of file smi.h.

typedef SmiOCTETS WINFAR* SmiLPBITS
 

Definition at line 206 of file smi.h.

typedef unsigned char WINFAR* SmiLPBYTE
 

Definition at line 189 of file smi.h.

typedef SmiUINT32 WINFAR* SmiLPCNTR32
 

Definition at line 217 of file smi.h.

typedef * SmiLPCNTR64
 

typedef SmiUINT32 WINFAR* SmiLPGAUGE32
 

Definition at line 220 of file smi.h.

typedef long WINFAR* SmiLPINT
 

Definition at line 192 of file smi.h.

typedef SmiINT WINFAR* SmiLPINT32
 

Definition at line 195 of file smi.h.

typedef SmiOCTETS WINFAR* SmiLPIPADDR
 

Definition at line 214 of file smi.h.

typedef SmiOCTETS WINFAR* SmiLPNSAPADDR
 

Definition at line 229 of file smi.h.

typedef * SmiLPOCTETS
 

typedef * SmiLPOID
 

Referenced by Oid::oidval().

typedef SmiOCTETS WINFAR* SmiLPOPAQUE
 

Definition at line 226 of file smi.h.

typedef SmiUINT32 WINFAR* SmiLPTIMETICKS
 

Definition at line 223 of file smi.h.

typedef unsigned long WINFAR* SmiLPUINT32
 

Definition at line 198 of file smi.h.

typedef SmiOCTETS SmiNSAPADDR
 

Definition at line 229 of file smi.h.

typedef SmiOCTETS SmiOPAQUE
 

Definition at line 226 of file smi.h.

typedef SmiUINT32 SmiTIMETICKS
 

Definition at line 223 of file smi.h.

typedef unsigned long SmiUINT32
 

Definition at line 198 of file smi.h.

Referenced by TimeTicks::get_syntax(), Oid::get_syntax(), OpaqueStr::get_syntax(), OctetStr::get_syntax(), SnmpInt32::get_syntax(), SnmpUInt32::get_syntax(), Gauge32::get_syntax(), Counter64::get_syntax(), Counter32::get_syntax(), GenAddress::get_syntax(), UdpAddress::get_syntax(), and IpAddress::get_syntax().


Generated on Tue Jan 4 22:42:14 2005 for SNMP++ by doxygen 1.3.2