struct tapi_snmp_message_t

Overview

SNMP Message More…

#include <tapi_snmp.h>

struct tapi_snmp_message_t {
    // fields

    ndn_snmp_msg_t type;
    int err_status;
    int err_index;
    size_t num_var_binds;
    tapi_snmp_varbind_t* vars;
    tapi_snmp_oid_t enterprise;
    long gen_trap;
    long spec_trap;
    uint8_t agent_addr[4];
};

Detailed Documentation

SNMP Message

Fields

ndn_snmp_msg_t type

type of message

int err_status

SNMP error, values: SNMP_ERR_* from <net-snmp/library/snmp.h>; used only in SNMP replies.

int err_index

Index of wrong variable binding in request used only in SNMP replies.

size_t num_var_binds

Number of variables in message.

tapi_snmp_varbind_t* vars

Pointer to array with variables.

Trap v1 only fields

tapi_snmp_oid_t enterprise

Enterprise

long gen_trap

gen_trap

long spec_trap

spec_trap

uint8_t agent_addr[4]

agent_addr