4 /***********************************************************
5 Copyright 1988, 1989 by Carnegie Mellon University
9 Permission to use, copy, modify, and distribute this software and its
10 documentation for any purpose and without fee is hereby granted,
11 provided that the above copyright notice appear in all copies and that
12 both that copyright notice and this permission notice appear in
13 supporting documentation, and that the name of CMU not be
14 used in advertising or publicity pertaining to distribution of the
15 software without specific, written prior permission.
17 CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
18 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
19 CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
20 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24 ******************************************************************/
44 #define STAT_SUCCESS 0
46 #define STAT_TIMEOUT 2
51 int snmp_set_var_value(netsnmp_variable_list *,
52 const u_char *, size_t);
53 int snmp_set_var_objid(netsnmp_variable_list * vp,
56 int snmp_set_var_typed_value(netsnmp_variable_list *
58 const u_char * val_str,
60 void snmp_replace_var_types(netsnmp_variable_list * vbl,
63 void snmp_reset_var_buffers(netsnmp_variable_list * var);
64 void snmp_reset_var_types(netsnmp_variable_list * vbl,
66 int count_varbinds(netsnmp_variable_list * var_ptr);
67 int count_varbinds_of_type(netsnmp_variable_list * var_ptr,
69 netsnmp_variable_list *find_varbind_of_type(netsnmp_variable_list *
70 var_ptr, u_char type);
72 netsnmp_variable_list *snmp_add_null_var(netsnmp_pdu *, oid *, size_t);
73 netsnmp_pdu *snmp_pdu_create(int);
74 netsnmp_pdu *snmp_fix_pdu(netsnmp_pdu *, int);
75 netsnmp_pdu *snmp_clone_pdu(netsnmp_pdu *);
76 netsnmp_pdu *snmp_split_pdu(netsnmp_pdu *, int skipCount,
79 unsigned long snmp_varbind_len(netsnmp_pdu *pdu);
80 int snmp_clone_var(netsnmp_variable_list *,
81 netsnmp_variable_list *);
82 netsnmp_variable_list *snmp_clone_varbind(netsnmp_variable_list *);
83 const char *snmp_errstring(int);
84 int snmp_synch_response(netsnmp_session *, netsnmp_pdu *,
86 int snmp_synch_response_cb(netsnmp_session *,
87 netsnmp_pdu *, netsnmp_pdu **,
89 int snmp_clone_mem(void **, void *, unsigned);
92 * single session API - see snmp_api.h for full details
94 int snmp_sess_synch_response(void *, netsnmp_pdu *,
100 #endif /* SNMP_CLIENT_H */