Commit d04381b8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix; use case insensitive compare for macs.

parent b0bdb967
...@@ -272,6 +272,7 @@ sub makeIfaceMaps() ...@@ -272,6 +272,7 @@ sub makeIfaceMaps()
$mac =~ s/://g; $mac =~ s/://g;
chomp($mac); chomp($mac);
$mac = lc($mac);
$if2mac{$iface} = $mac; $if2mac{$iface} = $mac;
$mac2if{$mac} = $iface; $mac2if{$mac} = $iface;
...@@ -352,6 +353,7 @@ sub findIface($) { ...@@ -352,6 +353,7 @@ sub findIface($) {
my $mac = shift; my $mac = shift;
$mac =~ s/://g; $mac =~ s/://g;
$mac = lc($mac);
return $mac2if{$mac} return $mac2if{$mac}
if (exists($mac2if{$mac})); if (exists($mac2if{$mac}));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment