On Thu, 13 Jan 2011 20:14:34 +0000 Dave wrote:
DS> I'm also not totally convinced that escaping the quotes around the IP
DS> address will work correctly.   My suspicion is that this might well be
DS> interpreted as a printable string (that happened to contain a sequence
DS> of digits and period characters).
DS>     So you could easily end up with an OID of the form
DS> 
DS>       
.1.3.6.1.2.1.6.19.1.7.1.13.'1'.'9'.'2'.'.'.'1'.'6'.'8'.'.'.'.'8'.'5'.'.'.'9'.'2'....
DS> or
DS>        .1.3.6.1.2.1.6.19.1.7.1.13.48.57.49.46.48.54.56.46.56.53.46.57.49...
DS> 
DS> where 13 is the length of the string  "192.168.85.92"
DS> (and similarly for the second IP type/address pair)
DS> 
DS> I *might* be wrong, and the OID parsing code is clever enough to
DS> spot InetAddress (and similar) values, and interpret the strings
DS> accordingly.   But I'd be very surprised....

Hmmm... I was pretty sure this worked... If it doesn't, then we shouldn't be
using the quotes in our output, to avoid exactly this confusion...

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to