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

◆ MAX_BINDINGS

#define MAX_BINDINGS   2147483647 /* PDU Defaults */

Definition at line 96 of file snmp_pdu.h.

◆ SNMP_DEFAULT_ADDRESS

#define SNMP_DEFAULT_ADDRESS   0

Definition at line 99 of file snmp_pdu.h.

◆ SNMP_DEFAULT_ERRINDEX

#define SNMP_DEFAULT_ERRINDEX   -1

Definition at line 98 of file snmp_pdu.h.

◆ SNMP_DEFAULT_ERRSTAT

#define SNMP_DEFAULT_ERRSTAT   -1

Definition at line 97 of file snmp_pdu.h.

◆ SNMP_DEFAULT_REQID

#define SNMP_DEFAULT_REQID   0

Definition at line 100 of file snmp_pdu.h.

◆ SNMP_PDU_GET

#define SNMP_PDU_GET   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)

Definition at line 92 of file snmp_pdu.h.

◆ SNMP_PDU_GETBULK

#define SNMP_PDU_GETBULK   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x5)

Definition at line 95 of file snmp_pdu.h.

◆ SNMP_PDU_GETNEXT

#define SNMP_PDU_GETNEXT   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)

Definition at line 93 of file snmp_pdu.h.

◆ SNMP_PDU_RESPONSE

#define SNMP_PDU_RESPONSE   (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)

Definition at line 94 of file snmp_pdu.h.

Function Documentation

◆ snmp_add_null_var()

void snmp_add_null_var ( struct snmp_pdu pdu,
oid name,
int  name_length 
)

◆ snmp_fix_pdu()

◆ snmp_free_pdu()

◆ snmp_pdu_clone()

struct snmp_pdu * snmp_pdu_clone ( struct snmp_pdu Src)

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().

◆ snmp_pdu_create()

◆ snmp_pdu_decode()

◆ snmp_pdu_encode()

◆ snmp_pdu_fix()

struct snmp_pdu * snmp_pdu_fix ( struct snmp_pdu pdu,
int  command 
)

Definition at line 181 of file snmp_pdu.c.

References snmp_pdu::command, and snmp_fix_pdu().

◆ snmp_pdu_free()

void snmp_pdu_free ( struct snmp_pdu 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