diff options
| author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-24 14:19:13 +0100 |
|---|---|---|
| committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-24 14:19:13 +0100 |
| commit | 6da71a5f29009883912ec243c5a71f4b8579c2f7 (patch) | |
| tree | d5af35431326947c1a0b195abcb57eaea538d568 /include/ScopedJavaUnicodeString.h | |
| parent | a0d186fb8202c72bd61231dbfe7006b79a91d7d5 (diff) | |
Fix NetworkInterface#getHardwareAddress corner case
NetworkInterface#getHardwareAddress was caching
the hardware address on its object creation. This is not
consistent with other NwtworkInterface methods
and will cause to return wrong value if address
changes or network device changes/goes away.
This change changes #getHardwareAddress to
recreate a NetworkInterface and fetch up-to-date
HW address (or throw an exception if there's no such address).
Bug: 28903817
Change-Id: I6cc195f93358a17777e19af76b72eb49c26fc658
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions
