Re: DISPLAY-HINT d-3 and negative numbers

2013-10-09 Thread Niels Baggesen
Den 26-09-2013 15:42, Mike Moreton skrev: If you display an object which has a negative small value, and a DISPLAY-HINT of something like d-3, then you can get results like: .0-7 The attached patch is a bit cleaner, and should also fix it. Could you please try that? /Niels -- Niels

DISPLAY-HINT d-3 and negative numbers

2013-09-26 Thread Mike Moreton
If you display an object which has a negative small value, and a DISPLAY-HINT of something like d-3, then you can get results like: .0-7 The following patch fixes it, but I think it makes the function a bit of a mess: diff -Naur net-snmp-5.7.2-unpatched/snmplib/mib.c net-snmp-5.7.2/snmplib

RE: DISPLAY-HINT "b"

2013-09-24 Thread Mike Moreton
Very nice! Thanks! > Date: Tue, 24 Sep 2013 17:39:20 +0200 > From: [email protected] > To: [email protected] > CC: [email protected] > Subject: Re: DISPLAY-HINT "b" > > Den 24-09-2013 08:00, Niels Baggesen skrev: > > On Mon, S

Re: DISPLAY-HINT "b"

2013-09-24 Thread Niels Baggesen
e forgot the 'b' case when implementing the code for DISPLAY-HINT :-( or at least mis-implemented it .. Could you try this patch and see if it fixes it? /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers ---

Re: DISPLAY-HINT "b"

2013-09-23 Thread Niels Baggesen
; case when implementing the code for DISPLAY-HINT :-( /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming -- October Webi

DISPLAY-HINT "b"

2013-09-23 Thread Mike Moreton
I thought this was meant to be the way of specifying a bit mask, but it just comes out as "%b", which isn't a lot of use! Am I doing something wrong? -- LIMITED TIME SALE - Full Y

Display InetAddressIPv4z Display hint

2009-10-12 Thread Fong Tsui
Hi, In net-snmp 5.4.2.1, InetAddressIPv4z's zone index is always displayed as 0. I believe this is a bug. Attached is the patch for fixing it. Thanks, Fong ip_zone_index.patch Description: ip_zone_index.patch -- Com

Re: bug in libsnmp: "no display hint" setting ignored

2007-10-04 Thread Thomas Anders
Kristof Verpoorten wrote: > I just subscribed to this mailing list because I found what I think is a > bug in the libsnmp project. Could you please submit this patch (in proper "diff -u" format) to the Project Patch Tracker (http://www.net-snmp.org/patches) so it won't get lost? Cheers, Thomas

bug in libsnmp: "no display hint" setting ignored

2007-10-04 Thread Kristof Verpoorten
Hi all, I just subscribed to this mailing list because I found what I think is a bug in the libsnmp project. When I set "netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_NO_DISPLAY_HINT, 1);" it will still use the display hint... To solve this bug I changed the follow

Re: DISPLAY-HINT

2005-06-08 Thread Dave Shield
On Wed, 2005-06-08 at 16:56, Vance Shipley wrote: > My read of RFC 2579 is that the "0d(" format specifier tells it to > consume 0 octets from the OCTET STRING and display "(". Hmmm... yes, I think you're probably correct. > Am I all wet or is there a bug in there somewhere? It looks very much l

DISPLAY-HINT

2005-06-08 Thread Vance Shipley
I wrote a textual convention in my MIB which attempts to present north american numbering plan telephone numbers in the conventional format i.e. (519)555-1234: DISPLAY-HINT "0d(1d1d1d0d)1d1d1d0d-1d1d1d1d" ... SYNTAX OCTET STRING (SIZE (10)) However when I use the co