Re: Fwd: Re: displaying IPv4-Address

2004-10-27 Thread David T. Perkins
HI, I have't looked at the code. However, the InetAddress TC has base data type of octet string, and is essentially a union that can contain different values based on the value of an object defined with TC InetAddressType. Looking just at the value of an object defined with TC InetAddress, no code

Re: displaying IPv4-Address

2004-10-27 Thread Sven Jonas
> Sven> But, when setting an Address like this 41.41.41.41, the result is a > little > Sven> bit strange: > Sven> ... = STRING: "" > > Robert> It is already fixed in 5.2. Here is a patch for 5.1.x. > > But isn't that patch referring to InetAddress *index* values, > when displaying an OID? >

Re: displaying IPv4-Address

2004-10-27 Thread Dave Shield
Sven> But, when setting an Address like this 41.41.41.41, the result is a little Sven> bit strange: Sven> ... = STRING: "" Robert> It is already fixed in 5.2. Here is a patch for 5.1.x. But isn't that patch referring to InetAddress *index* values, when displaying an OID? Sven's problem see

Re: displaying IPv4-Address

2004-10-27 Thread Sven Jonas
Robert, thanks for your very quick response. Unfortunally, this time, the patch didn't work or i made a mistake. First, i updated the mib.c-file with the patch-tool. Than, i run make and than make install. Net-snmp compiled without any errors. Than, i compiled my agent and set an InetAdress-Vari

Fwd: Re: displaying IPv4-Address

2004-10-27 Thread Sven Jonas
Dave, The Syntax of this Mib-Object is InetAddress and it looks suitable. Almost parallel to your response, Robert sent a patch, which i will test. Thanks for your very quick response and kind regards, Sven > > > After setting an Address like this 192.168.143.10, i get with the > > appropria

Re: displaying IPv4-Address

2004-10-26 Thread Coders
On Tue, 26 Oct 2004 16:28:55 +0200 (MEST) Sven wrote: SJ> while i was working with setting and getting an IPv4 InetAddress one SJ> problem arise. SJ> SJ> But, when setting an Address like this 41.41.41.41, the result is a little SJ> bit strange: SJ> ... = STRING: "" SJ> SJ> >From my point of

Re: displaying IPv4-Address

2004-10-26 Thread Dave Shield
> After setting an Address like this 192.168.143.10, i get with the > appropriate snmpget-command following result: > ... = Hex-STRING: C0 A8 8F 0A > > This is fine, because it is an InetAdressType Yup - which is represented in SNMP as a 4-element OCTET STRING. > But, when setting an Address li