diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-24 14:19:13 +0100 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-24 16:31:39 +0100 |
commit | ff5f23104d99093992414dad9c436c420413024b (patch) | |
tree | a38ff43330074f0019340a3dd218c41a271de3e2 /include/ScopedJavaUnicodeString.h | |
parent | d30ce4a7c809da1f168b7ff4d98ea1baa89183d3 (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
(cherry picked from commit 6da71a5f29009883912ec243c5a71f4b8579c2f7)
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions