Merge PR #690: Update MAC address database
This commit is contained in:
commit
889f268eb4
@ -111,7 +111,7 @@ for vendorInfo in sortedVendorHash:
|
|||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
||||||
# Insert all oui with reference to company name
|
# Insert all oui with reference to company name
|
||||||
print('Writing OUI into database with company name refference...')
|
print('Writing OUI into database with company name reference...')
|
||||||
# Sort by oui for good binary search in the db
|
# Sort by oui for good binary search in the db
|
||||||
sortedOuiHash = sorted(vendorInfoHash.items(), key=lambda x: x[0], reverse=False)
|
sortedOuiHash = sorted(vendorInfoHash.items(), key=lambda x: x[0], reverse=False)
|
||||||
ouiCount = 0
|
ouiCount = 0
|
||||||
@ -124,4 +124,4 @@ for vendorInfo in sortedOuiHash:
|
|||||||
|
|
||||||
connection.commit()
|
connection.commit()
|
||||||
connection.close()
|
connection.close()
|
||||||
print('Finished successfully. Loaded', ouiCount, 'OUI values from', vendorCount, 'manufacturers into', databaseFileName)
|
print('Finished successfully. Loaded', ouiCount, 'OUI values from', vendorCount, 'manufacturers into', databaseFileName)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user