Within the Bandwidth Manager.DB, the rule table has an ADAPTER_ID column. I am trying to figure out what the column value translates to in terms of the actual adapter.
For instance, it shows 1381106261, what value is this referring to? I thought maybe it would store the interface index or something, but nothing I can get from powershell etc. returns 1381106261.
Thank you for your assistance!
SoftPerfect Bandwidth Manager
Network adapter ID
Started by Christopher
Christopher
Network adapter ID 14 January 2022, 12:50 |
Re: Network adapter ID 14 January 2022, 12:51 |
Admin Registered: 11 years ago Posts: 960 |
We were unable to use interface index as it turned out that adapter indices can change between reboots or system upgrades.
Instead we take the system adapter name (GUID) and compute a 32-bit hash value of it. The names and their hashes remain the same throughout the lifespan of the system.
If you just need to know the mapping once off in a single system, the simplest way would be to create a rule and assign an adapter to it to see what ID gets written into the database.
Alternatively we can simply add a new table in the database listing all available adapters and their IDs.
Instead we take the system adapter name (GUID) and compute a 32-bit hash value of it. The names and their hashes remain the same throughout the lifespan of the system.
If you just need to know the mapping once off in a single system, the simplest way would be to create a rule and assign an adapter to it to see what ID gets written into the database.
Alternatively we can simply add a new table in the database listing all available adapters and their IDs.
Christopher
Re: Network adapter ID 14 January 2022, 12:57 |
Re: Network adapter ID 14 January 2022, 13:13 |
Admin Registered: 11 years ago Posts: 960 |
As mentioned earlier, the simplest way would be to add a new table to the database listing all available interfaces and their IDs. We use a custom hashing function for the ID and calculating it outside the software would be complicated.
So if you download and install the latest build, you will see there is a new table ADAPTER that has all the information you need.
So if you download and install the latest build, you will see there is a new table ADAPTER that has all the information you need.