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

Frank Fock fock at agentpp.com
Mon Apr 23 18:35:51 CEST 2007


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




More information about the SNMP4J mailing list