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

Rory Marquis roridge at hotmail.com
Mon Apr 23 12:46:58 CEST 2007


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/




More information about the SNMP4J mailing list