snmp_pdu.h File Reference
#include "asn1.h"
Include dependency graph for snmp_pdu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  snmp_pdu
 

Macros

#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_GETBULK   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5)
 
#define MAX_BINDINGS   2147483647 /* PDU Defaults */
 
#define SNMP_DEFAULT_ERRSTAT   -1
 
#define SNMP_DEFAULT_ERRINDEX   -1
 
#define SNMP_DEFAULT_ADDRESS   0
 
#define SNMP_DEFAULT_REQID   0
 

Functions

struct snmp_pdusnmp_pdu_create (int)
 
struct snmp_pdusnmp_pdu_clone (struct snmp_pdu *)
 
struct snmp_pdusnmp_pdu_fix (struct snmp_pdu *, int)
 
struct snmp_pdusnmp_fix_pdu (struct snmp_pdu *, int)
 
void snmp_free_pdu (struct snmp_pdu *)
 
void snmp_pdu_free (struct snmp_pdu *)
 
u_char * snmp_pdu_encode (u_char *, int *, struct snmp_pdu *)
 
u_char * snmp_pdu_decode (u_char *, int *, struct snmp_pdu *)
 
void snmp_add_null_var (struct snmp_pdu *, oid *, int)
 

Macro Definition Documentation

#define MAX_BINDINGS   2147483647 /* PDU Defaults */

Definition at line 105 of file snmp_pdu.h.

#define SNMP_DEFAULT_ADDRESS   0

Definition at line 108 of file snmp_pdu.h.

Referenced by snmp_pdu_create().

#define SNMP_DEFAULT_ERRINDEX   -1

Definition at line 107 of file snmp_pdu.h.

Referenced by Snmp::Pdu::init(), snmp_fix_pdu(), and snmp_pdu_create().

#define SNMP_DEFAULT_ERRSTAT   -1

Definition at line 106 of file snmp_pdu.h.

Referenced by Snmp::Pdu::init(), snmp_fix_pdu(), and snmp_pdu_create().

#define SNMP_DEFAULT_REQID   0

Definition at line 109 of file snmp_pdu.h.

Referenced by snmp_fix_pdu().

#define SNMP_PDU_GET   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)

Definition at line 92 of file snmp_pdu.h.

Referenced by snmp_coexist_V2toV1(), and snmpAgentResponse().

#define SNMP_PDU_GETBULK   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5)

Definition at line 99 of file snmp_pdu.h.

Referenced by snmp_coexist_V2toV1(), snmp_pdu_decode(), and snmp_pdu_encode().

#define SNMP_PDU_GETNEXT   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)

Definition at line 93 of file snmp_pdu.h.

Referenced by snmp_coexist_V2toV1(), and snmpAgentResponse().

#define SNMP_PDU_RESPONSE   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)

Function Documentation

void snmp_add_null_var ( struct snmp_pdu ,
oid ,
int   
)

Definition at line 641 of file snmp_pdu.c.

References variable_list::next_variable, NULL, snmp_var_new(), and snmp_pdu::variables.

struct snmp_pdu* snmp_pdu_clone ( struct snmp_pdu )

Definition at line 147 of file snmp_pdu.c.

References NULL, snmp_set_api_error(), SNMPERR_OS_ERR, snmplib_debug(), and xmalloc.

Referenced by snmp_fix_pdu().

struct snmp_pdu* snmp_pdu_fix ( struct snmp_pdu ,
int   
)

Definition at line 181 of file snmp_pdu.c.

References snmp_fix_pdu().

void snmp_pdu_free ( struct snmp_pdu )

Definition at line 275 of file snmp_pdu.c.

References snmp_free_pdu().

Referenced by snmp_fix_pdu().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors