aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-manuf
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-04-15 19:10:15 +0000
committerGerald Combs <gerald@wireshark.org>2013-04-15 19:10:15 +0000
commitcd7796a6ef9086f872e3fbcef03f73e169ea182d (patch)
treeb9e19ac1a815be3736885fe532af226d87d63f27 /tools/make-manuf
parentd7c35d571d4e5c61d25d81fe1589881fefdc6e90 (diff)
Handle the IEEE's new! improved! two-space indentation.
svn path=/trunk/; revision=48856
Diffstat (limited to 'tools/make-manuf')
-rwxr-xr-xtools/make-manuf6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/make-manuf b/tools/make-manuf
index 8f8128f1bc..fa71cf8c8c 100755
--- a/tools/make-manuf
+++ b/tools/make-manuf
@@ -121,7 +121,7 @@ $ieee_list = fetch($iab_url);
foreach $line (split(/\n/, $ieee_list)) {
# determine the OUI used for IAB (currently only 00-50-C2)
- if (($iab_tmp, $manuf) = ($line =~ /^($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
+ if (($iab_tmp, $manuf) = ($line =~ /^\s*($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
$iab_base = $iab_tmp;
}
# determine next two bytes
@@ -146,7 +146,7 @@ $ieee_list = fetch($oui36_url);
foreach $line (split(/\n/, $ieee_list)) {
# determine the OUI used for OUI-36 (currently only 00-1B-C5)
- if (($oui36_tmp, $manuf) = ($line =~ /^($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
+ if (($oui36_tmp, $manuf) = ($line =~ /^\s*($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
$oui36_base = $oui36_tmp;
}
# determine next two bytes
@@ -170,7 +170,7 @@ foreach $line (split(/\n/, $ieee_list)) {
$ieee_list = fetch($oui_url);
foreach $line (split(/\n/, $ieee_list)) {
- if (($oui, $manuf) = ($line =~ /^($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
+ if (($oui, $manuf) = ($line =~ /^\s*($ieee_re)\s+\(hex\)\s+(\S.*)$/)) {
$oui =~ tr /-/:/; # The IEEE bytes are separated by dashes.
# Ensure OUI is all upper-case
$oui =~ tr/a-f/A-F/;