net-snmp 5.7
Data Structures | Typedefs | Functions
various PDU processing routines
The Net-SNMP library

Data Structures

struct  rowcreate_state_s
 ************************************************************************** More...

Typedefs

typedef struct rowcreate_state_s rowcreate_state
 **************************************************************************

Functions

 netsnmp_feature_child_of (snmp_client_all, libnetsnmp)
netsnmp_variable_listsnmp_add_null_var (netsnmp_pdu *pdu, const oid *name, size_t name_length)
int snmp_clone_var (netsnmp_variable_list *var, netsnmp_variable_list *newvar)
int snmp_clone_mem (void **dstPtr, const void *srcPtr, unsigned len)
void snmp_reset_var_buffers (netsnmp_variable_list *var)
netsnmp_variable_listsnmp_clone_varbind (netsnmp_variable_list *varlist)
netsnmp_pdusnmp_clone_pdu (netsnmp_pdu *pdu)
netsnmp_pdusnmp_split_pdu (netsnmp_pdu *pdu, int skip_count, int copy_count)
netsnmp_pdusnmp_fix_pdu (netsnmp_pdu *pdu, int command)
unsigned long snmp_varbind_len (netsnmp_pdu *pdu)
int snmp_set_var_objid (netsnmp_variable_list *vp, const oid *objid, size_t name_length)
int snmp_set_var_typed_value (netsnmp_variable_list *newvar, u_char type, const void *val_str, size_t val_len)
 snmp_set_var_typed_value is used to set data into the netsnmp_variable_list structure.
int snmp_set_var_typed_integer (netsnmp_variable_list *newvar, u_char type, long val)
int count_varbinds (netsnmp_variable_list *var_ptr)
 netsnmp_feature_child_of (count_varbinds_of_type, netsnmp_unused)
 netsnmp_feature_child_of (find_varind_of_type, netsnmp_unused)
netsnmp_variable_listfind_varbind_in_list (netsnmp_variable_list *vblist, const oid *name, size_t len)
int snmp_set_var_value (netsnmp_variable_list *vars, const void *value, size_t len)
void snmp_replace_var_types (netsnmp_variable_list *vbl, u_char old_type, u_char new_type)
void snmp_reset_var_types (netsnmp_variable_list *vbl, u_char new_type)
int snmp_synch_response_cb (netsnmp_session *ss, netsnmp_pdu *pdu, netsnmp_pdu **response, snmp_callback pcb)
int snmp_synch_response (netsnmp_session *ss, netsnmp_pdu *pdu, netsnmp_pdu **response)
int snmp_sess_synch_response (void *sessp, netsnmp_pdu *pdu, netsnmp_pdu **response)
const char * snmp_errstring (int errstat)
void netsnmp_query_set_default_session (netsnmp_session *sess)
netsnmp_sessionnetsnmp_query_get_default_session_unchecked (void)
 Return a pointer to the default internal query session.
netsnmp_sessionnetsnmp_query_get_default_session (void)
 Return a pointer to the default internal query session and log a warning message once if this session does not exist.
int netsnmp_query_get (netsnmp_variable_list *list, netsnmp_session *session)
int netsnmp_query_getnext (netsnmp_variable_list *list, netsnmp_session *session)
int netsnmp_query_set (netsnmp_variable_list *list, netsnmp_session *session)
int netsnmp_query_walk (netsnmp_variable_list *list, netsnmp_session *session)
int netsnmp_state_machine_run (netsnmp_state_machine_input *input)
 **************************************************************************
int netsnmp_row_create (netsnmp_session *sess, netsnmp_variable_list *vars, int row_status_index)
 **************************************************************************

Typedef Documentation

**************************************************************************

row create state machine steps


Function Documentation

netsnmp_session* netsnmp_query_get_default_session ( void  )

Return a pointer to the default internal query session and log a warning message once if this session does not exist.

Definition at line 1234 of file snmp_client.c.

netsnmp_session* netsnmp_query_get_default_session_unchecked ( void  )

Return a pointer to the default internal query session.

Definition at line 1224 of file snmp_client.c.

int netsnmp_row_create ( netsnmp_session sess,
netsnmp_variable_list vars,
int  row_status_index 
)

**************************************************************************

row api

Definition at line 1811 of file snmp_client.c.

int netsnmp_state_machine_run ( netsnmp_state_machine_input input)

**************************************************************************

state machine

Definition at line 1424 of file snmp_client.c.

int snmp_set_var_typed_value ( netsnmp_variable_list newvar,
u_char  type,
const void *  val_str,
size_t  val_len 
)

snmp_set_var_typed_value is used to set data into the netsnmp_variable_list structure.

Used to return data to the snmp request via the netsnmp_request_info structure's requestvb pointer.

Parameters:
newvarthe structure gets populated with the given data, type, val_str, and val_len.
typeis the asn data type to be copied
val_stris a buffer containing the value to be copied into the newvar structure.
val_lenthe length of val_str
Returns:
returns 0 on success and 1 on a malloc error
Examples:
delayed_instance.c.

Definition at line 700 of file snmp_client.c.

int snmp_set_var_value ( netsnmp_variable_list vars,
const void *  value,
size_t  len 
)

FALL THROUGH

Definition at line 771 of file snmp_client.c.