1 --- yapsnmp-0.7.8/configure 2004-03-08 05:21:26.000000000 -0600
2 +++ yapsnmp-0.7.8.new/configure 2007-07-19 15:19:03.712465556 -0500
7 -for PYTHONINCPATH in python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
8 +for PYTHONINCPATH in python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
10 as_ac_Header=`echo "ac_cv_header_$PYTHONINCPATH/Python.h" | $as_tr_sh`
11 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12 --- yapsnmp-0.7.8/src/mib.h-patch 2004-03-07 17:09:53.000000000 -0600
13 +++ yapsnmp-0.7.8.new/src/mib.h-patch 2007-07-19 15:12:46.266956163 -0500
15 -*** /usr/include/net-snmp/library/mib.h 2003-11-11 08:37:02.000000000 -0800
16 ---- mib.h 2004-03-07 14:59:47.000000000 -0800
19 - int get_wild_node(const char *, oid *, size_t *);
20 - int get_node(const char *, oid *, size_t *);
21 - oid *snmp_parse_oid(const char *, oid *, size_t *);
22 -! struct tree *get_symbol(oid *, size_t, struct tree *, char *);
23 - struct tree *get_tree(const oid *, size_t, struct tree *);
24 - struct tree *get_tree_head(void);
25 - void set_function(struct tree *);
27 - int get_wild_node(const char *, oid *, size_t *);
28 - int get_node(const char *, oid *, size_t *);
29 - oid *snmp_parse_oid(const char *, oid *, size_t *);
30 -! /* struct tree *get_symbol(oid *, size_t, struct tree *, char *);*/
31 - struct tree *get_tree(const oid *, size_t, struct tree *);
32 - struct tree *get_tree_head(void);
33 - void set_function(struct tree *);
36 - const char *parse_octet_hint(const char *hint, const char *value,
37 - unsigned char **new_val, int *new_val_len);
39 -! void clear_tree_flags(register struct tree *tp);
41 - char *snmp_out_toggle_options(char *);
42 - void snmp_out_toggle_options_usage(const char *, FILE *);
44 - const char *parse_octet_hint(const char *hint, const char *value,
45 - unsigned char **new_val, int *new_val_len);
47 -! /* void clear_tree_flags(register struct tree *tp);*/
49 - char *snmp_out_toggle_options(char *);
50 - void snmp_out_toggle_options_usage(const char *, FILE *);
51 +--- mib.h.old 2007-07-19 15:11:03.917123577 -0500
52 ++++ mib.h 2007-07-19 15:10:44.804034380 -0500
54 + const char *parse_octet_hint(const char *hint, const char *value,
55 + unsigned char **new_val, int *new_val_len);
57 +- void clear_tree_flags(register struct tree *tp);
58 ++ /* void clear_tree_flags(register struct tree *tp); */
60 + char *snmp_out_toggle_options(char *);
61 + void snmp_out_toggle_options_usage(const char *, FILE *);
62 --- yapsnmp-0.7.8/src/snmp_api.h-patch 2004-03-07 17:09:53.000000000 -0600
63 +++ yapsnmp-0.7.8.new/src/snmp_api.h-patch 2007-07-19 14:59:23.653217810 -0500
65 -*** /usr/include/net-snmp/library/snmp_api.h 2003-11-11 08:37:07.000000000 -0800
66 ---- snmp_api.h 2004-03-07 15:02:18.000000000 -0800
71 - * The actual transport domain. This SHOULD NOT BE FREE()D.
77 - netsnmp_variable_list *variables;
82 - * The actual transport domain. This SHOULD NOT BE FREE()D.
88 - netsnmp_variable_list *variables;
93 - * Authentication function or NULL if null authentication is used
95 -! u_char *(*authenticator) (u_char *, size_t *, u_char *, size_t);
96 - netsnmp_callback callback; /* Function to interpret incoming data */
98 - * Pointer to data that the callback function may consider important
101 - * Authentication function or NULL if null authentication is used
103 -! /* u_char *(*authenticator) (u_char *, size_t *, u_char *, size_t);*/
104 - netsnmp_callback callback; /* Function to interpret incoming data */
106 - * Pointer to data that the callback function may consider important
111 - #define SNMPERR_MAX (-63)
114 - #define non_repeaters errstat
115 - #define max_repetitions errindex
118 - struct variable_list {
119 - struct variable_list *next_variable; /* NULL for last variable */
122 - oid name_loc[MAX_OID_LEN]; /* 90 percentile < 24. */
123 - u_char buf[40]; /* 90 percentile < 40. */
124 - void *data; /* (Opaque) hook for additional data */
125 -! void (*dataFreeHook)(void *); /* callback to free above */
130 - oid name_loc[MAX_OID_LEN]; /* 90 percentile < 24. */
131 - u_char buf[40]; /* 90 percentile < 40. */
132 - void *data; /* (Opaque) hook for additional data */
133 -! /* void (*dataFreeHook)(void *); */ /* callback to free above */
140 - int netsnmp_oid_equals(const oid *, size_t, const oid *,
142 -! int netsnmp_oid_tree_equals(const oid *, size_t, const oid *,
144 - int netsnmp_oid_is_subtree(const oid *, size_t, const oid *,
146 - int netsnmp_oid_find_prefix(const oid * in_name1, size_t len1,
149 - int netsnmp_oid_equals(const oid *, size_t, const oid *,
151 -! /* int netsnmp_oid_tree_equals(const oid *, size_t, const oid *,
153 - int netsnmp_oid_is_subtree(const oid *, size_t, const oid *,
155 - int netsnmp_oid_find_prefix(const oid * in_name1, size_t len1,
159 +--- snmp_api.h.orig Fri Jan 7 17:06:46 2005
160 ++++ snmp_api.h Fri Jan 7 17:10:01 2005
161 +@@ -112,10 +112,10 @@
164 + * The actual transport domain. This SHOULD NOT BE FREE()D.
167 + const oid *tDomain;
171 + netsnmp_variable_list *variables;
175 + * Authentication function or NULL if null authentication is used
177 +- u_char *(*authenticator) (u_char *, size_t *, u_char *, size_t);
178 ++ /* u_char *(*authenticator) (u_char *, size_t *, u_char *, size_t); */
179 + /** Function to interpret incoming data */
180 + netsnmp_callback callback;
182 +@@ -487,8 +487,10 @@
184 + #define SNMPERR_MAX (-63)
187 + #define non_repeaters errstat
188 + #define max_repetitions errindex
194 + /** (Opaque) hook for additional data */
196 + /** callback to free above */
197 +- void (*dataFreeHook)(void *);
198 ++ /* void (*dataFreeHook)(void *); */
204 + int netsnmp_oid_equals(const oid *, size_t, const oid *,
206 +- int netsnmp_oid_tree_equals(const oid *, size_t, const oid *,
208 ++/* int netsnmp_oid_tree_equals(const oid *, size_t, const oid *,
210 + int netsnmp_oid_is_subtree(const oid *, size_t, const oid *,
212 + int netsnmp_oid_find_prefix(const oid * in_name1, size_t len1,
213 +@@ -739,11 +741,13 @@
214 + size_t * out_length,
216 + size_t pdu_data_len);
218 + int snmpv3_packet_rbuild(netsnmp_session *,
219 + netsnmp_pdu *pdu, u_char * packet,
222 size_t pdu_data_len);
224 - int snmpv3_packet_rbuild(netsnmp_session *,
225 - netsnmp_pdu *pdu, u_char * packet,
226 - size_t * out_length,
228 - size_t pdu_data_len);
230 - int snmpv3_make_report(netsnmp_pdu *pdu, int error);
231 - int snmpv3_get_report_type(netsnmp_pdu *pdu);
232 - int snmp_pdu_parse(netsnmp_pdu *pdu, u_char * data,
236 - * Extended open; fpre_parse has changed.
240 - netsnmp_session *snmp_open_ex(netsnmp_session *,
241 - int (*fpre_parse) (netsnmp_session *,
246 - netsnmp_pdu *, u_char **,
247 - size_t *, size_t *),
248 - int (*fcheck) (u_char *, size_t));
252 - * provided for backwards compatability. Don't use these functions.
260 - void *snmp_sess_add_ex(netsnmp_session *,
261 - struct netsnmp_transport_s *,
262 - int (*fpre_parse) (netsnmp_session *,
272 - * use return value from snmp_sess_open as void * parameter
274 + int snmpv3_make_report(netsnmp_pdu *pdu, int error);
275 + int snmpv3_get_report_type(netsnmp_pdu *pdu);
276 + int snmp_pdu_parse(netsnmp_pdu *pdu, u_char * data,
278 + * Extended open; fpre_parse has changed.
282 + netsnmp_session *snmp_open_ex(netsnmp_session *,
283 + int (*fpre_parse) (netsnmp_session *,
286 + netsnmp_pdu *, u_char **,
287 + size_t *, size_t *),
288 + int (*fcheck) (u_char *, size_t));
292 + * provided for backwards compatability. Don't use these functions.
298 + void *snmp_sess_add_ex(netsnmp_session *,
299 + struct netsnmp_transport_s *,
300 + int (*fpre_parse) (netsnmp_session *,
308 + * use return value from snmp_sess_open as void * parameter
309 --- yapsnmp-0.7.8/configure.old 2007-07-19 16:27:36.126818690 -0500
310 +++ yapsnmp-0.7.8/configure 2007-07-19 16:28:12.692902474 -0500
311 @@ -8816,7 +8816,7 @@
312 #define HAVE_LIBSNMP 1
315 - LIBS="-lsnmp $LIBS"
316 + LIBS="-lnetsnmp $LIBS"
319 { { echo "$as_me:$LINENO: error: Couldn't find libsnmp" >&5
320 --- yapsnmp-0.7.8/configure.old 2007-07-19 16:30:48.185763508 -0500
321 +++ yapsnmp-0.7.8/configure 2007-07-19 16:30:52.021982121 -0500
322 @@ -8757,13 +8757,13 @@
326 -echo "$as_me:$LINENO: checking for init_snmp in -lsnmp" >&5
327 -echo $ECHO_N "checking for init_snmp in -lsnmp... $ECHO_C" >&6
328 +echo "$as_me:$LINENO: checking for init_snmp in -lnetsnmp" >&5
329 +echo $ECHO_N "checking for init_snmp in -lnetsnmp... $ECHO_C" >&6
330 if test "${ac_cv_lib_snmp_init_snmp+set}" = set; then
331 echo $ECHO_N "(cached) $ECHO_C" >&6
333 ac_check_lib_save_LIBS=$LIBS
335 +LIBS="-lnetsnmp $LIBS"
336 cat >conftest.$ac_ext <<_ACEOF
337 #line $LINENO "configure"