From 1d3b111af5929a2b15c5125e797902ce8a58201c Mon Sep 17 00:00:00 2001 From: Net-SNMP Packaging Team Date: Mon, 5 Mar 2018 21:13:51 +1100 Subject: [PATCH] callback_print Gbp-Pq: Name callback_print.diff --- perl/SNMP/SNMP.xs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl/SNMP/SNMP.xs b/perl/SNMP/SNMP.xs index e5b5aa2..db8a6e2 100644 --- a/perl/SNMP/SNMP.xs +++ b/perl/SNMP/SNMP.xs @@ -1296,6 +1296,10 @@ void *cb_data; netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS, 1); netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_OID_OUTPUT_FORMAT, NETSNMP_OID_OUTPUT_NUMERIC); } + if (SvIV(*hv_fetch((HV*)SvRV(sess_ref),"UseEnums", 8, 1))) + sprintval_flag = USE_ENUMS; + if (SvIV(*hv_fetch((HV*)SvRV(sess_ref),"UseSprintValue", 14, 1))) + sprintval_flag = USE_SPRINT_VALUE; sv_bless(varlist_ref, gv_stashpv("SNMP::VarList",0)); for(vars = (pdu?pdu->variables:NULL); vars; vars = vars->next_variable) {