Subject: | message.pm mac address problem |
Date: | Fri, 29 Jun 2007 15:48:25 -0700 |
To: | bug-net-snmp [...] rt.cpan.org |
From: | mike newton <mike [...] digg.com> |
i noticed recently that some of my mac addresses weren't getting
translated from octet-strings. i finally decided to take some time
and figure it out and found that the function "_process_octet_string"
in Message.pm seems to be using a character class to check against the
5th octet. unfortunately, this character class isn't matching a
couple of my newer machines. the current match is on
"/[\x01-\x08\x0b\x0e-\x1f\x7f-\xff]/g" and the 2 macs i have that
aren't working right now are 00:30:48:79:2c:2e and 00:30:48:79:2c:36.
clearly 2c won't match the char class since nothing between 20 and 7e
are matched. is there a good reason for the fancy matching and not
just matching on [0-9a-f]?
thx
+m
--
mike newton
digg.com