2008-07-22 07:46:49 +00:00
|
|
|
452131: net-snmp-perl is broken for 5.10, cannot set oids
|
|
|
|
|
|
|
|
Source: jbjohnso@us.ibm.com, accepted upstream, SVN rev. 17097
|
|
|
|
|
|
|
|
diff -urN net-snmp-5.4.1/perl/SNMP/SNMP.xs net-snmp-5.4.1-f9fix/perl/SNMP/SNMP.xs
|
2008-07-25 11:03:32 +00:00
|
|
|
diff -up net-snmp-5.4.1/perl/SNMP/SNMP.xs.backup_patch_19 net-snmp-5.4.1/perl/SNMP/SNMP.xs
|
|
|
|
--- net-snmp-5.4.1/perl/SNMP/SNMP.xs.backup_patch_19 2008-07-25 12:54:02.000000000 +0200
|
|
|
|
+++ net-snmp-5.4.1/perl/SNMP/SNMP.xs 2008-07-25 12:54:05.000000000 +0200
|
|
|
|
@@ -3072,7 +3072,7 @@ snmp_set(sess_ref, varlist_ref, perl_cal
|
2008-07-22 07:46:49 +00:00
|
|
|
res = __add_var_val_str(pdu, oid_arr, oid_arr_len,
|
|
|
|
(varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
SvPV(*varbind_val_f,na):NULL),
|
|
|
|
- (varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
+ (varbind_val_f && SvPOK(*varbind_val_f) ?
|
|
|
|
SvCUR(*varbind_val_f):0), type);
|
|
|
|
|
|
|
|
if (verbose && res == FAILURE)
|
2008-07-25 11:03:32 +00:00
|
|
|
@@ -4266,7 +4266,7 @@ snmp_trapV1(sess_ref,enterprise,agent,ge
|
2008-07-22 07:46:49 +00:00
|
|
|
res = __add_var_val_str(pdu, oid_arr, oid_arr_len,
|
|
|
|
(varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
SvPV(*varbind_val_f,na):NULL),
|
|
|
|
- (varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
+ (varbind_val_f && SvPOK(*varbind_val_f) ?
|
|
|
|
SvCUR(*varbind_val_f):0),
|
|
|
|
type);
|
|
|
|
|
2008-07-25 11:03:32 +00:00
|
|
|
@@ -4424,7 +4424,7 @@ snmp_trapV2(sess_ref,uptime,trap_oid,var
|
2008-07-22 07:46:49 +00:00
|
|
|
res = __add_var_val_str(pdu, oid_arr, oid_arr_len,
|
|
|
|
(varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
SvPV(*varbind_val_f,na):NULL),
|
|
|
|
- (varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
+ (varbind_val_f && SvPOK(*varbind_val_f) ?
|
|
|
|
SvCUR(*varbind_val_f):0),
|
|
|
|
type);
|
|
|
|
|
2008-07-25 11:03:32 +00:00
|
|
|
@@ -4563,7 +4563,7 @@ snmp_inform(sess_ref,uptime,trap_oid,var
|
2008-07-22 07:46:49 +00:00
|
|
|
res = __add_var_val_str(pdu, oid_arr, oid_arr_len,
|
|
|
|
(varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
SvPV(*varbind_val_f,na):NULL),
|
|
|
|
- (varbind_val_f && SvOK(*varbind_val_f) ?
|
|
|
|
+ (varbind_val_f && SvPOK(*varbind_val_f) ?
|
|
|
|
SvCUR(*varbind_val_f):0),
|
|
|
|
type);
|
|
|
|
|