[SNMP4J] GenericAddress.parse(String) doesn't comply with IP standards?

Rory Marquis roridge at hotmail.com
Tue Apr 24 13:20:43 CEST 2007


Ah, I see, so it does :)

Thanks for that, I shall pre-parse my IPv4 address'. Not sure why anyone 
would use Octal for an IP address, but for some reason they do.

Thanks once again Frank.
Rory


>From: Frank Fock <fock at agentpp.com>
>To: Rory Marquis <roridge at hotmail.com>
>CC: snmp4j at agentpp.org
>Subject: Re: [SNMP4J] GenericAddress.parse(String) doesn't comply with IP 
>standards?
>Date: Mon, 23 Apr 2007 18:35:51 +0200
>
>Hi Rory,
>
>SNMP4J uses JDK means to parse IP addresses.
>So please refer to
>http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html#getByName(java.lang.String)
>for further references.
>
>Best regards,
>Frank
>
>Rory Marquis wrote:
>>Hi, I posted this question a while back, but I either missed the response 
>>or there wasn't one. Does anyone have a suggestion?
>>
>>Have been having a problem with my SNMP manager app for a few days now and
>>just tracked it down, to when I'm calling
>>GenericAddress.parse("udp:192.168.0.0132/161");
>>
>>The function doesn't work with Octal values, so when returning the IP
>>address is will be 192.168.0.132 instead of 192.168.0.90.
>>
>>Oddly though it works with Hex values, just not Octal.
>>
>>Is it better that I pre-parse all my IP addresses into decimal first?
>>
>>Thanks
>>Rory
>>
>>_________________________________________________________________
>>Get Hotmail, News, Sport and Entertainment from MSN on your mobile.  
>>http://www.msn.txt4content.com/
>>
>>_______________________________________________
>>SNMP4J mailing list
>>SNMP4J at agentpp.org
>>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>--
>AGENT++
>http://www.agentpp.com
>http://www.mibexplorer.com
>http://www.mibdesigner.com
>

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile.  
https://livemessenger.mobile.uk.msn.com/




More information about the SNMP4J mailing list